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. Which Function is better.? [modified]

Which Function is better.? [modified]

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

    hi, all, I wanna know which function is better to use. Objectif: i have a FormView in which i use to add some data into a ComboBox before displaying the Form. So i hesitate beteween the OnInitUpdate , PreCreateWindow and WM_CreateWindow. So which one is the adequate one? Thx -- modified at 13:29 Thursday 29th November, 2007

    "The Ultimate Limit Is Only Your Imagination.

    K V 2 Replies Last reply
    0
    • S Schehaider_Aymen

      hi, all, I wanna know which function is better to use. Objectif: i have a FormView in which i use to add some data into a ComboBox before displaying the Form. So i hesitate beteween the OnInitUpdate , PreCreateWindow and WM_CreateWindow. So which one is the adequate one? Thx -- modified at 13:29 Thursday 29th November, 2007

      "The Ultimate Limit Is Only Your Imagination.

      K Offline
      K Offline
      krmed
      wrote on last edited by
      #2

      If you're going to add items to the ComboBox, you only choice of the three you mention is OnInitialUpdate. The ComboBox window doesn't exist during PreCreateWindow or during Create. Only after the call to CFormView::OnInitialUpdate does the ComboBox window actually exist (valid hWnd). Hope that helps.

      Karl - WK5M PP-ASEL-IA (N43CS) PGP Key: 0xDB02E193 PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193

      1 Reply Last reply
      0
      • S Schehaider_Aymen

        hi, all, I wanna know which function is better to use. Objectif: i have a FormView in which i use to add some data into a ComboBox before displaying the Form. So i hesitate beteween the OnInitUpdate , PreCreateWindow and WM_CreateWindow. So which one is the adequate one? Thx -- modified at 13:29 Thursday 29th November, 2007

        "The Ultimate Limit Is Only Your Imagination.

        V Offline
        V Offline
        vijith squadz
        wrote on last edited by
        #3

        :-Dprecreatewindow will be better

        vijith vijayan

        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