Hey guys
Does anyone know how you retrive a handle to a dialog box you made yourself. Im looking to retriev a HMENUHANDLE handle so i can use it for a submenu.
Peter
Printable View
Hey guys
Does anyone know how you retrive a handle to a dialog box you made yourself. Im looking to retriev a HMENUHANDLE handle so i can use it for a submenu.
Peter
if you want to get the menu of a window, then it is:
menuhandle=GetMenu(windowhandle);
If you are using CreateDialog(), the return value is the handle to it. You could also use the hWnd argument of your DialogProc to get the handle.