ok the function to create dialog box requires an hInstance param.
Is there a way I can get this handle from inside the dialog procedure function. Thanks...
ok the function to create dialog box requires an hInstance param.
Is there a way I can get this handle from inside the dialog procedure function. Thanks...
Try:
good luckCode:long hInstance = GetWindowLong(NULL, GWL_HINSTANCE);
Dharius
also..
HINSTANCE hInst=GetModuleHandle(0);
works just about anywhere.
thanks to both you, thats exactly what i needed