Dead simple? Setting the caption of a static text label without MFC

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Aienthiwan (insert_my_name_here_at_mountaincable.net)
Date: 07/22/04


Date: Wed, 21 Jul 2004 20:09:49 -0400

Hey all,

Not using MFC, trying to do something ridiculously simple in a Win32 C++
project.

I got a dialog box I created with the Visual Studio resource editor, and
inside it there are two labels (aka static text boxes).

After I pop up the dialog box, I want to change the contents of them in
runtime.

First off, any way I get the window handle of those labels using their
resources ids? If so, how? If not, what's the best way?

Secondly, how do I set the caption's of these static text boxes?

And does anyone know of any NON-MFC Win32 API programming links/tutorials
that would help me along (with Visual Studio .NET would be a plus)?

Thanks much,
    Mark



Relevant Pages

  • prevent Textbox postback when hit enter key?
    ... I create a asp.net 3.5 page using visual studio 2008. ... with labels, text boxes and a few buttons. ... Any books to brush up on this? ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Need to purchase AES code for Windows - Problem Solved
    ... none of which have passed the Monte Carlo output tests when compiled ... I really need some working source code plus visual studio project files. ... files that have been proven to pass the Monte Carlo tests in Win32 ...
    (sci.crypt)
  • Re: question about Delphi and Visual Studio .NET
    ... does VS .NET have an equivalent of the Delphi property 'tag'... ... You're asking about what's provided by the component libraries. ... In the Win32 version, its type is Integer. ... So which component library are you using in Visual Studio? ...
    (comp.lang.pascal.delphi.misc)
  • HOWTO Get rid of LNK4078
    ... I don't seem to be able to get rid of this warning when building on Win32 Release Mode. ... I even deleted all files created by Visual Studio: ... IE6 SP1 Headers & Libraries ... WIN32 SDK Headers & Libraries ...
    (microsoft.public.vc.ide_general)
  • HOWTO Get rid of LNK4078
    ... I don't seem to be able to get rid of this warning when building on Win32 Release Mode. ... I even deleted all files created by Visual Studio: ... IE6 SP1 Headers & Libraries ... WIN32 SDK Headers & Libraries ...
    (microsoft.public.vc.language)