Link to home
Start Free TrialLog in
Avatar of Marsc
Marsc

asked on

Very easy I think....

Hi experts...
Some time I see some code that I don't understand...

I love program on windows directly in MSVC++ without MFC.

Well... What does it mean... It is in the code that defines the class window to be registered.
Keep in mind that wcex is a WNDCLASSEX type variable

wcex.lpfnWndProc =(WNDPROC)WndProc;
WndProc is the name of the function that process the msgs.

wcex.hbrBackground      = (HBRUSH)(COLOR_WINDOW+1)
wcex.lpszMenuName = (LPCSTR)IDC_MENU;

IDC_MENU is a menu resourse ID.

Can any one explain to me what is the meaning of those "(SomeThing)"
I see things like that everywhere but I don't know how to use it.

I know use the parenthesys in theese situation if (), for (), function (){}But I'm not sure how do they work in thinks like this

something = (OtherThing)AnotherThing.

And where else can I use this kind of code?

Can any C++ expert explain to me?.
Thanks.

Avatar of Marsc
Marsc

ASKER

Edited text of question.
Avatar of Marsc

ASKER

Edited text of question.
ASKER CERTIFIED SOLUTION
Avatar of olgat
olgat

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Marsc

ASKER

Thanks...
I'm using Type Casting now... It is very usefull...

Avatar of Marsc

ASKER

Thanks...
I'm using Type Casting now... It is very usefull...