Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Win32 (http://www.go4expert.com/articles/win32-tutorials/)
-   -   Simple example of creating tab controls (http://www.go4expert.com/articles/simple-example-creating-tab-controls-t8799/)

shabbir 18Mar2008 17:34

Re: Simple example of creating tab controls
 
Vote for article of the month for Feb 2008

laocui172 23Apr2008 06:13

Re: Simple example of creating tab controls
 
Quote:

Originally Posted by imrantechi
if you need any further help ,please feel free to ask me

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.

laocui172 23Apr2008 08:45

Re: Simple example of creating tab controls
 
how can i trigger en event such as RadioButton's OnClick, and do something in the event?
i'm so poor English , sry

Shilelis 3May2008 12:33

Re: Simple example of creating tab controls
 
Hi,

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

Thank you,
Shilelis

aisha.ansari84 19Jun2008 17:14

Re: Simple example of creating tab controls
 
Quote:

Originally Posted by laocui172
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.

hi the code works perfectly fine in vc++ there is no such error

aisha.ansari84 19Jun2008 17:20

Re: Simple example of creating tab controls
 
Quote:

Originally Posted by laocui172
how can i trigger en event such as RadioButton's OnClick, and do something in the event?
i'm so poor English , sry

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


All times are GMT +5.5. The time now is 07:34.