Solved

CButton - Radio Button and "Push-like" style

Posted on 2001-08-07
2
1,374 Views
Last Modified: 2013-11-20
I would like to have a toolbar that contains a series of push-like radio button.  I know it can be done with the resource editor, but I need to do it dynmically. Unfortunately I don't know how to set the style. The following doesn't seem to work.


CButton *pButton;

//this is in the init of my toolbar
pButton = new CButton();
rect.SetRect(0,0,50,50);

if(!pButton->Create("Test",WS_CHILD|WS_VISIBLE|BS_PUSHBUTTON|BS_ICON|BS_AUTORADIOBUTTON   ,rect,this,ID_BUTTON1))
          {
          return FALSE;
          }

0
Comment
Question by:zeekial
  • 2
2 Comments
 
LVL 2

Accepted Solution

by:
Lockias earned 200 total points
ID: 6360398
BS_AUTORADIOBUTTON | BS_PUSHLIKE

~Lockias
0
 
LVL 2

Expert Comment

by:Lockias
ID: 6360409
if(!pButton->Create("Test",WS_CHILD | WS_VISIBLE | BS_ICON | BS_AUTORADIOBUTTON | BS_PUSHLIKE, rect, this, ID_BUTTON1))
{
    return FALSE;
}
------------------------------------------------------
BS_PUSHLIKE is not in the documentation.

~Lockias
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VB.NET how to use the Vertical ScrollBar 5 103
iSeries FTP Exit Program 8 135
deburging in oracle form 12 98
sameEnds challenge 3 156
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now