Quantcast
Channel: CodeGuru Forums - Visual C++ Programming
Viewing all articles
Browse latest Browse all 3021

[RESOLVED] BS_PUSHBUTTON starts disabled on creation

$
0
0
Hi,
I am trying to create a button on a panel. On creation however it starts off disabled and I can't find out why.

In my class:
Code:

CButton                                  m_ZoomIncrease;
On creation of the panel:
Code:

m_ZoomIncrease.Create(CString((LPCTSTR)IDS_ZOOM_INCREASE),WS_CHILD|WS_VISIBLE|BS_RADIOBUTTON,CRect(0,0,20,20),this,IDC_INCREASEZOOM);
If I change BS_PUSHBUTTON to either BS_AUTO3STATE or BS_AUTOCHECKBOX it works fine. If I change it to BS_RADIOBUTTON however it still doesn't work.

Any help would be greatly appreciated.

Viewing all articles
Browse latest Browse all 3021

Trending Articles