Home > Software engineering >  I recently are learning Windows programming
I recently are learning Windows programming

Time:11-01

Code is not about understanding
WNDCLASS wc.
The wc. The hInstance=hInstance//handle to the current instance assigned to a class??

And then there are
CreateWindow even when preach a handle??????? As well as the handle??????

The last question is
DC what this structure saved?

CodePudding user response:

WNDCLASS wc.
The wc. The hInstance=hInstance//handle to the current instance assigned to a class??=========structure member variable assignment to a good surprise

And then there are
CreateWindow even when preach a handle??????? As well as the handle??????
The HWND CreateWindow (
LPCTSTR lpClassName,//registered class name
LPCTSTR lpWindowName,//window name
DWORD dwStyle,//the window style
Int x,//horizontal position of the window
Int y,//vertical position of the window
Int nWidth, window width//
Int nHeight,//the window height
HWND hWndParent,//handle to the parent or owner window=======to create the specified window's parent window
HMENU HMENU,//the menu handle or child identifier
HINSTANCE HINSTANCE,//handle to the application instance
LPVOID lpParam//window - creation data
);


The last question is
DC what this structure saved? Look at the picture


CodePudding user response:

Handle is a bit like a pointer of a pointer,

CodePudding user response:

I have a covering content in the above diagram to uncover the impulse to look at what is
  • Related