Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. VS.NET VC7 generated code, where is it?

VS.NET VC7 generated code, where is it?

Scheduled Pinned Locked Moved C / C++ / MFC
csharpvisual-studiocomtoolstutorial
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    TigerNinja_
    wrote on last edited by
    #1

    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.

    T S 2 Replies Last reply
    0
    • T TigerNinja_

      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.

      T Offline
      T Offline
      Tomasz Sowinski
      wrote on last edited by
      #2

      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. **

      1 Reply Last reply
      0
      • T TigerNinja_

        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.

        S Offline
        S Offline
        shokisingh
        wrote on last edited by
        #3

        if u want to just change the style do this: m_cListCtrl.ModifyStyle(0, LVS_REPORT); in the constuctor or initdialog();: Ashok Singh

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups