specify parent window in Windows Resource Script file(*.rc)
Posted
by welemon
on Stack Overflow
See other posts from Stack Overflow
or by welemon
Published on 2010-05-31T05:17:28Z
Indexed on
2010/05/31
5:22 UTC
Read the original article
Hit count: 199
Hi, I'm looking for a method to specify parent window in *.rc file.
In *.rc file, it contains the layout and controls of a dialog. Any new control added into it, will automatically become a child window of Dialog itself.
But I want to add a custom draw window into dialog, and some other controls which has that "custom draw window" as parent window, not dialog itself.
I know I can use ::CreateWindow(...) API to dynamic create a window in code, and specify the custom draw window as parent HWND. But we already has child controls layout in *.rc file, I just want to reuse them, without create HWND again.
Thanks,
William L.
© Stack Overflow or respective owner