Solved

CButton - Radio Button and "Push-like" style

Posted on 2001-08-07
2
1,390 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Decoding 32 bit binary streams 6 59
Expand data scrubbing tool 13 36
sameEnds challenge 3 196
Notepad++ Question 11 27
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
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.
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

739 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