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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. List Box have a error ???

List Box have a error ???

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++question
3 Posts 2 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.
  • S Offline
    S Offline
    Surivevoli
    wrote on last edited by
    #1

    In my Application inform "Dialog", i use a listbox. In the ListBox's properties window,i use: Border:(checked) Notify:(checked) Horizontal scroll:(checked) Vertical scroll:(checked) No integral heigh:(checked) Selection: single Onwner draw: Fixed Has Tring:(checked) But when i run my program ,it has error: "MyApplication MFC Application has encountered a problem and needs to close. We are sorry for the inconvenience." if i chose : Onwner draw: No then no error! Could you help me ? Lgx

    Y 1 Reply Last reply
    0
    • S Surivevoli

      In my Application inform "Dialog", i use a listbox. In the ListBox's properties window,i use: Border:(checked) Notify:(checked) Horizontal scroll:(checked) Vertical scroll:(checked) No integral heigh:(checked) Selection: single Onwner draw: Fixed Has Tring:(checked) But when i run my program ,it has error: "MyApplication MFC Application has encountered a problem and needs to close. We are sorry for the inconvenience." if i chose : Onwner draw: No then no error! Could you help me ? Lgx

      Y Offline
      Y Offline
      YaronNir
      wrote on last edited by
      #2

      Although this settings doesn't crash my tested application.... Maybe you should concider this: Owner draw Controls the owner-draw characteristics of the list box. Possible values are as follows: · No (default): Turns off the owner-draw style. The list box contains strings. · Fixed: Specifies that the owner of the list box is responsible for drawing its contents and that the items in the list box are the same height. CWnd::OnMeasureItem is called when the list box is created and CWnd::OnDrawItem is called when a visual aspect of the list box has changed. · Variable: Specifies that the owner of the list box is responsible for drawing its contents and that the items in the list box are variable in height. CWnd::OnMeasureItem is called for each item in the list when the list box is created and CWnd::OnDrawItem is called when a visual aspect of the list box has changed. Ask not what your application can do for you, Ask what you can do for your application

      S 1 Reply Last reply
      0
      • Y YaronNir

        Although this settings doesn't crash my tested application.... Maybe you should concider this: Owner draw Controls the owner-draw characteristics of the list box. Possible values are as follows: · No (default): Turns off the owner-draw style. The list box contains strings. · Fixed: Specifies that the owner of the list box is responsible for drawing its contents and that the items in the list box are the same height. CWnd::OnMeasureItem is called when the list box is created and CWnd::OnDrawItem is called when a visual aspect of the list box has changed. · Variable: Specifies that the owner of the list box is responsible for drawing its contents and that the items in the list box are variable in height. CWnd::OnMeasureItem is called for each item in the list when the list box is created and CWnd::OnDrawItem is called when a visual aspect of the list box has changed. Ask not what your application can do for you, Ask what you can do for your application

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

        thank you very much !

        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