Simple example of creating tab controls

Discussion in 'Win32' started by imrantechi, Feb 13, 2008.

  1. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
  2. laocui172

    laocui172 New Member

    Joined:
    Apr 22, 2008
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    thank u very much!

    I can run your code correctly in c++ builder, but i get someting wrong with visual c++ running
    the code.
    the error info is:
    F:\test\vc6\win32Ctl\m.cpp(256) : error C2664: 'CreateWindowExA' : cannot convert parameter 11 from 'void *' to 'struct HINSTANCE__ *'
    Conversion from 'void*' to pointer to non-'void' requires an explicit cast

    i don't know why ? please help me . thks

    i'm from china, speaking English is not good.
     
  3. laocui172

    laocui172 New Member

    Joined:
    Apr 22, 2008
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    how can i trigger en event such as RadioButton's OnClick, and do something in the event?
    i'm so poor English , sry
     
  4. Shilelis

    Shilelis New Member

    Joined:
    May 3, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    Hi,

    is it possible to create a window without caption and border, but with menu ? If so, then how?

    Thank you,
    Shilelis
     
  5. aisha.ansari84

    aisha.ansari84 New Member

    Joined:
    Feb 13, 2008
    Messages:
    82
    Likes Received:
    1
    Trophy Points:
    0
    hi the code works perfectly fine in vc++ there is no such error
     
    Last edited: Jun 19, 2008
  6. aisha.ansari84

    aisha.ansari84 New Member

    Joined:
    Feb 13, 2008
    Messages:
    82
    Likes Received:
    1
    Trophy Points:
    0
    under WM_COMMAND ,you can create the switch case in which you can handle any of the radio button on click event.

    the sitch will be written as switch(LOWORD(wParam))

    then you need to create cases with the Identifiers of the buttons .

    Inside the case you can do any event
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice