visual studio - MsgProc never receive WM_ messages? -


i had program worked fine , trying make updates now. seems no more receive windows message, wm_lbuttondown or wm_setcursor (wm_create called). don't know what's problem.

this layered window created that:

wc.cbsize=sizeof(wndclassex); wc.style=cs_classdc; wc.lpfnwndproc=msgproc; wc.cbclsextra=0l; wc.cbwndextra=0l; wc.hinstance=getmodulehandle(null); wc.hicon=null; wc.hbrbackground=null; wc.lpszmenuname=null; wc.lpszclassname="myapp"; wc.hcursor=hmain;  registerclassex( &wc );  // create application's window hwnd = createwindowex(ws_ex_layered|ws_ex_topmost, "myapp", "myapp",                            ws_popupwindow|ws_thickframe|ws_minimizebox|ws_maximizebox, 10, 10, desiredwidth, desiredheight,                           getdesktopwindow(), null, wc.hinstance, null ); 

i developping under visual studio express 2008 on windows 7 x64 (i started program on win7 x86)

thanks

the window isn't visible. add ws_visible styles, or call showwindow().


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -