specify parent window in Windows Resource Script file(*.rc)
- by welemon
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.