Monday, May 24, 2010

C++ windows.h help?

Can you explain the


"win Main(HINSTANCE hInstance,


HINSTANCE hPrevInstance,


LPSTR LPCmdLine,


int SW_SHOWMAXIMIZED)"





and


"winclass.sizeof


winclass. style


winclass.lpfnwndproc


winclass.cbclsextra"





Please explain these and if you have a website tutorial can you please send it?





Thanks

C++ windows.h help?
winclass.sizeof is the size of the structure so when you pass the structure to a function requiring winclass structure, the function can determine if it is running in 16-bit mode, 32-bit mode or 64-bit mode.


winclass.style determines how a window should be created and whether it should have a title, use a system menu, use minimize and maximize buttons and so forth.


winclass.cbclsextra is amount of extra space to reserve for application defined data.


WinMain(HINSTANCE hInstance, HINSTANCE prevhInstance, LPSTR LPCmdLine, int cmdShow)


hInstance is the numeric identifier of your program, allows you to identify programs by number.


prevhInstance is 0 if this program is not already running or running under Windows 32/64 bit system.


prevhInstance is non zero if this program is already running in 16 bit Windows system.


LPCmdLine stores the arguments of the program passed.


cmdShow is how the Main Window is shown


By default it is a window set in a certain position and size.


SW_SHOWMINIMIZED is a window that has been minimized.


SW_SHOWMAXIMIZED is a window covering whole screen.

floral deliveries

No comments:

Post a Comment