mfc commnand

Started by
0 comments, last by MJP 15 years, 8 months ago
what does this do? CONTROL "List1",IDC_LIST1,"SysListView32",WS_BORDER | WS_TABSTOP, 7,66,256,195
Advertisement
That's a line out of a dialog box template. It says "give me a ListView control named List1, with an ID defined as IDC_LIST1, with the WS_BORDER and WS_TABSTOP window styles, positioned at (7,66) and dimensions of 256x195.

Dialog templates are used to store a description of a particular dialog box layout, and are typically stored in a resource script and created by the Visual Studio Dialog Editor. So with them you could come with a dialog for a specific task (like say, to set some program options), pick the size and layout, and put some controls on it. Then in your program code when you actually want to make the dialog pop up, you call CreateDialog or DialogBox and give the name of the template you want to use.

This topic is closed to new replies.

Advertisement