Handle
I made a little dialog box (called with DialogBox(...)) for my app so you can choose your res ... The only problem is, when I need to play around with values in Dropdown list, combo box and stuff, I need their handle, how do I get their handle from their name (IDC_STUFF)
(you can find me on IRC : #opengl on undernet)
HWND GetDlgItem(
HWND hDlg, // handle of dialog box
int nIDDlgItem // identifier of control
);
That''s what you are looking for I hope.
Nate Miller
http://nate.scuzzy.net
HWND hDlg, // handle of dialog box
int nIDDlgItem // identifier of control
);
That''s what you are looking for I hope.
Nate Miller
http://nate.scuzzy.net
Try this dood:
HWND hWnd;
hWnd = getActiveWindow();
that will return the active window handle
i think this is what you want.
to Code, or Not To Code
HWND hWnd;
hWnd = getActiveWindow();
that will return the active window handle
i think this is what you want.
to Code, or Not To Code
to Code, or Not To Code
cxi2, no, that''s now what he wants... Nate got it right, though...
-------------------------------
That's just my 200 bucks' worth!
..-=gLaDiAtOr=-..
-------------------------------
That's just my 200 bucks' worth!
..-=gLaDiAtOr=-..
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement