Dialog Controls (WIN32)
Ok, first off I''d like to mention that I''m using VC++ 4.x and I''m programming in the WIN32 API. I''m currently making a dialog, but my only experiences with dialogs have been with MFC, but now I''m going away from MFC and moving into the basic WIN32 structure. My problem is that I''m not even sure at all how to approach getting a handle to a dialog control from a dialog template in a .rc file. I can handle everything else once I get the handle, I''m just not sure how to get it. Just to reiterate, I made a dialog template in a .rc file and am just trying to get handles to the different controls. I realize that I could make the dialog controls manually and at runtime, but I''d really prefer this method. If any of this makes sense please respond as best as you can. If I''m just babbling nonsense then just tell me the better way to approach this. Thanks in advance for your time.
Chris
Well here''s my shot
This launches a configuration dialog box for a project I''m working on
and this gets a handle to a control in that dialog box. This is called from the ConfigDialogProc function.
if you need more info then goto http://msdn.microsoft.com/library/default.asp and poke around the Platform SDK section.
Hope this is some help.
wytraven@kik.net
There is nothing real outside our perception of reality. Is there?
This launches a configuration dialog box for a project I''m working on
DialogBox(hinstance,MAKEINTRESOURCE(IDD_CONFIG_DIALOG), hParentWindow, ConfigDialogProc);
and this gets a handle to a control in that dialog box. This is called from the ConfigDialogProc function.
hLength = GetDlgItem(hwnd, IDC_LENGTH_SCROLLBAR);
if you need more info then goto http://msdn.microsoft.com/library/default.asp and poke around the Platform SDK section.
Hope this is some help.
wytraven@kik.net
There is nothing real outside our perception of reality. Is there?
[email=wytraven@kik.net]wytraven@kik.net[/email]There is nothing real outside our perception of reality. Is there?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement