Window Program Design 1. window Program Design
Int WINAPI WinMain (HINSTANCE HInstance, HINSTANCE HPreInstance, LPSTR sz1_line, int CmdShown)
{
MassageBox (NULL, TEXT ("hello"), TEXT ("window program"), MB_ OK );
}
HInstance: handle instance (the process generated by the running program. The handle is an instance of the running program and uniquely identifies it)
Module: exe and dll files in the running program (called when the program is loaded into the memory) Note: Some dll files contain a pi function, also known as the module handle. (Public win16: When an executable file is loaded multiple times, a module exists)
(Win32 or 64: The instance handle is the module handle)
PreInstance: determines whether other program instances are in progress and port the previous instance to your data zone.
SzCmdLine: Command Line for loading files to memory when the program is running
NCmdShow: the initial display method of the program
MassageBox: dialog box function (NULL: parent window handle, subject string, title bar string, OK button)