Efitap
May 25th, 2006, 02:28 AM
I've created a win32 application, and successfully created a status bar at the bottom of it. Modal dialogs are not a problem either, I've made a login dialog box with little effort, as well as the standard about dialog box.
Thing is, in all that white area, I would like to include a couple of dialog resources. They're allready designed and saved in my project. A Treeview with a couple of textboxes and buttons on the left side of the application, and a listbox with a few sliders on the right side.
Now - question is. If I understand win32 correctly, I just need to figure out the syntax to add and position these two "forms" on my main application's painting area. I need help with this. If I understand it correctly, these should all be just dumb windows that get their own HWND so I can identify their messages with later on.
So, boiling down - this should be easy to answer:
HWND hTreeView = CreateWindowEx( 0, MAKEINTRESOURCE( IDD_TREE_TEST ), NULL, WS_CHILD | WS_VISIBLE, CW_USEDEFAULT, CW_USEDEFAULT, 0, 0, hWnd, 0, hInst, NULL );
Is this proper syntax for placing my resource template named IDD_TREE_TEST on my main window? I cannot see it anywhere on my app. Is there somehting else I need to do in order to view it?
Thing is, in all that white area, I would like to include a couple of dialog resources. They're allready designed and saved in my project. A Treeview with a couple of textboxes and buttons on the left side of the application, and a listbox with a few sliders on the right side.
Now - question is. If I understand win32 correctly, I just need to figure out the syntax to add and position these two "forms" on my main application's painting area. I need help with this. If I understand it correctly, these should all be just dumb windows that get their own HWND so I can identify their messages with later on.
So, boiling down - this should be easy to answer:
HWND hTreeView = CreateWindowEx( 0, MAKEINTRESOURCE( IDD_TREE_TEST ), NULL, WS_CHILD | WS_VISIBLE, CW_USEDEFAULT, CW_USEDEFAULT, 0, 0, hWnd, 0, hInst, NULL );
Is this proper syntax for placing my resource template named IDD_TREE_TEST on my main window? I cannot see it anywhere on my app. Is there somehting else I need to do in order to view it?