shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Vote for article of the month for Feb 2008
laocui172's Avatar, Join Date: Apr 2008
Newbie Member
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's Avatar, Join Date: Apr 2008
Newbie Member
how can i trigger en event such as RadioButton's OnClick, and do something in the event?
i'm so poor English , sry
Shilelis's Avatar, Join Date: May 2008
Newbie Member
Hi,

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

Thank you,
Shilelis
aisha.ansari84's Avatar, Join Date: Feb 2008
Contributor
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

Last edited by aisha.ansari84; 19Jun2008 at 17:22..
aisha.ansari84's Avatar, Join Date: Feb 2008
Contributor
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