VS.NET VC7 generated code, where is it?
-
Hi all, If I use VS.NET to create a dialog application and say I add a ListCtrl with the designer and set the style to REPORT. So where is this information stored, does the designer generate code? For example I would look for some code in my project containing
LVS_REPORT
:m_myListCtrl.Create( WS_CHILD|WS_VISIBLE|WS_BORDER|LVS_REPORT, CRect(10,10,400,200), pParentWnd, 1);
but that code does not exist in my project! Thanks in advance.
Soliant | email "The whole of science is nothing more than a refinement of everyday thinking." -Albert E.
-
Hi all, If I use VS.NET to create a dialog application and say I add a ListCtrl with the designer and set the style to REPORT. So where is this information stored, does the designer generate code? For example I would look for some code in my project containing
LVS_REPORT
:m_myListCtrl.Create( WS_CHILD|WS_VISIBLE|WS_BORDER|LVS_REPORT, CRect(10,10,400,200), pParentWnd, 1);
but that code does not exist in my project! Thanks in advance.
Soliant | email "The whole of science is nothing more than a refinement of everyday thinking." -Albert E.
There's no generated code. The dialog layout is defined by so-called 'dialog template' stored in program resources. When you invoke dialog box, Win32 API (not MFC) creates the dialog box and populates it with controls. The code you'll see in MFC app is responsible for creating CWnd-derived objects mapped to their Win32 API counterparts (HWNDs). Look in DoDataExchange for this. Tomasz Sowinski -- http://www.shooltz.com
** Putt knot yore thrust inn spel chequers. **
-
Hi all, If I use VS.NET to create a dialog application and say I add a ListCtrl with the designer and set the style to REPORT. So where is this information stored, does the designer generate code? For example I would look for some code in my project containing
LVS_REPORT
:m_myListCtrl.Create( WS_CHILD|WS_VISIBLE|WS_BORDER|LVS_REPORT, CRect(10,10,400,200), pParentWnd, 1);
but that code does not exist in my project! Thanks in advance.
Soliant | email "The whole of science is nothing more than a refinement of everyday thinking." -Albert E.
if u want to just change the style do this: m_cListCtrl.ModifyStyle(0, LVS_REPORT); in the constuctor or initdialog();: Ashok Singh