I have an untyped pointer which I want to typecast as a pointer to a groupbox control.
Can anyone show me how this should be done?
Haim
Just cast it: *(type)variable.method
pointer control = GetControl(IDB_STOP);
*(CStatic)control.SetText("stop"); // groupbox is a static control
*(CWindow)control.Show(false);
It's not a stupid question. I was looking at this problem and was stuck because I did not realize that groupbox is a static control. Now we all learn something. :D
I had no idea it was a static control.
Thanks for your help!
Haim