开发者

How to access window class extra memory without a window handle?

开发者 https://www.devze.com 2022-12-08 01:00 出处:网络
I need to register a window class, and right after that set some data in it\'s extra memory section (the one cbClsExtra refers to) before any window of the class is being created. The problem is that

I need to register a window class, and right after that set some data in it's extra memory section (the one cbClsExtra refers to) before any window of the class is being created. The problem is that SetClassLong expects a HWND in orde开发者_JAVA技巧r to identify the class, instead of the class's name or atom.

What's the way to acheive this?


Why can't you just create a dummy window of that class, set the data and destroy the window?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号