Home > Back-end >  What are the specific differences RigisterClass and RigosterClassEx?
What are the specific differences RigisterClass and RigosterClassEx?

Time:11-08

What are the specific differences RigisterClass and RigisterClassEx?

CodePudding user response:

Rigister ? Rigoster ? If want to express Register ?

If you are asked RegisterClass or RegisterClassEx difference, something like this:
RegisterClass function USES the WNDCLASS structure, and use the modifed WNDCLASSEX structure RegisterClassEx,
Modifed WNDCLASSEX structure is similar to the WNDCLASS structure, but the cbSize and hIconSm cbSize specify the size of the structure, hIconSm contains the window class handles associated insets target,

Suggest directly use RegisterClassEx went, of course, if you don't set the small icon, use RegisterClass nor can not,

CodePudding user response:

The
ccrun.com reply: 1/f, reference
Rigister ? Rigoster ? If want to express Register ?

If you are asked RegisterClass or RegisterClassEx difference, something like this:
RegisterClass function USES the WNDCLASS structure, and use the modifed WNDCLASSEX structure RegisterClassEx,
Modifed WNDCLASSEX structure is similar to the WNDCLASS structure, but the cbSize and hIconSm cbSize specify the size of the structure, hIconSm contains the window class handles associated insets target,

Suggest directly use RegisterClassEx went, of course, if you don't set the small icon, use RegisterClass nor can't

Just found write wrong,,, _ (: з) _
<)thank you

CodePudding user response:

The
ccrun.com reply: 1/f, reference
Rigister ? Rigoster ? If want to express Register ?

If you are asked RegisterClass or RegisterClassEx difference, something like this:
RegisterClass function USES the WNDCLASS structure, and use the modifed WNDCLASSEX structure RegisterClassEx,
Modifed WNDCLASSEX structure is similar to the WNDCLASS structure, but the cbSize and hIconSm cbSize specify the size of the structure, hIconSm contains the window class handles associated insets target,

Suggest directly use RegisterClassEx went, of course, if you don't set the small icon, use RegisterClass nor can't

Can you use RegisterClass (& amp; Modifed wndclassex)?
Set RegisterClass parameters for modifed WNDCLASSEX *?
This will appear what problem?

CodePudding user response:

As far as possible don't make this (although need casts, also you can compile operation),
Suggest to follow the rules of the API,

CodePudding user response:

Ccrun.com
reference 4 floor response:
as far as possible don't make this (although need casts, can also be compiled to run),
Suggest to follow the rules of the API,

Good
Thank you
(gather together a word - _ -)
  • Related