Click here to Skip to main content
16,008,183 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCPropertySheet in wizard mode Pin
Jon Sagara23-Jul-01 11:23
Jon Sagara23-Jul-01 11:23 
GeneralRe: CPropertySheet in wizard mode Pin
Paolo Messina23-Jul-01 12:27
professionalPaolo Messina23-Jul-01 12:27 
GeneralRe: CPropertySheet in wizard mode Pin
Jon Sagara23-Jul-01 12:40
Jon Sagara23-Jul-01 12:40 
GeneralBlinking label. Pin
John Uhlenbrock23-Jul-01 11:06
John Uhlenbrock23-Jul-01 11:06 
GeneralRe: Blinking label. Pin
Christian Graus23-Jul-01 12:15
protectorChristian Graus23-Jul-01 12:15 
GeneralRe: Blinking label. Pin
John Uhlenbrock24-Jul-01 7:12
John Uhlenbrock24-Jul-01 7:12 
GeneralRe: Blinking label. Pin
Christian Graus24-Jul-01 10:46
protectorChristian Graus24-Jul-01 10:46 
QuestionWhy my four radio buttons show up but no text next to them? Pin
tm23-Jul-01 10:39
tm23-Jul-01 10:39 
I am creating these four radio buttons dynamically.
The behavior is so random and confusing. At some point I got some text, and then I can't get it anymore. I have been told by friends at this forum that maybe the width is not enough, one time that fixed the problem but not anymore!!!!!!!

Here is the code:

if (OneGrpPosition != NULL)
{
pConfig->m_OneRadioBtn = (CRadioBtn *) (((CGrpBox*)pConfig->m_OneGrpBox)->m_GrpRadioBtn).GetNext(OneGrpPosition);
int len= ctrlRect.right - ctrlRect.left;
ctrlRect.right = ctrlRect.left +len+ 60;
if (ctrlRect.right >= 542)
::MessageBox(0, "Running out of screen width to display radio button", "Warning", MB_OK);

ctrlRect.bottom = ctrlRect.top + 25;

if (nDex == 0)
//
{

m_RadioButtonArray[nDex].Create((pConfig->m_OneRadioBtn)->m_RadioLabel,
WS_GROUP | WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON, ctrlRect,this, (pConfig->m_OneRadioBtn)->m_RadioGuiID );

m_RadioButtonArray[nDex].SetFont(&m_font, TRUE);
}
else
{
m_RadioButtonArray[nDex].Create((pConfig->m_OneRadioBtn)->m_RadioLabel,WS_CHILD| WS_VISIBLE | BS_AUTORADIOBUTTON, ctrlRect,this,(pConfig->m_OneRadioBtn)->m_RadioGuiID);
m_RadioButtonArray[nDex].SetFont(&m_font, TRUE);
}
nDex= nDex+1;
ctrlRect.left = ctrlRect.right +10;


//This radio button has already been added to the memory structure
}
}
//This ia a new radio button that needs to be added to the memory structure
}


I am in Paradise.
Voltaire
AnswerRe: Why my four radio buttons show up but no text next to them? Pin
Paolo Messina23-Jul-01 12:24
professionalPaolo Messina23-Jul-01 12:24 
GeneralRe: Why my four radio buttons show up but no text next to them? Pin
tm23-Jul-01 12:32
tm23-Jul-01 12:32 
GeneralRe: Why my four radio buttons show up but no text next to them? Pin
Paolo Messina23-Jul-01 12:37
professionalPaolo Messina23-Jul-01 12:37 
GeneralRe: Why my four radio buttons show up but no text next to them? Pin
23-Jul-01 14:53
suss23-Jul-01 14:53 
GeneralRe: Why my four radio buttons show up but no text next to them? Pin
Paolo Messina24-Jul-01 3:41
professionalPaolo Messina24-Jul-01 3:41 
GeneralMonitoring Clipboard Pin
23-Jul-01 9:56
suss23-Jul-01 9:56 
GeneralRe: Monitoring Clipboard Pin
Michael Dunn23-Jul-01 10:28
sitebuilderMichael Dunn23-Jul-01 10:28 
GeneralInitial Update in CDialog Pin
23-Jul-01 9:12
suss23-Jul-01 9:12 
GeneralRe: Initial Update in CDialog Pin
Chris Losinger23-Jul-01 9:24
professionalChris Losinger23-Jul-01 9:24 
GeneralA simple question... Pin
23-Jul-01 9:11
suss23-Jul-01 9:11 
GeneralRe: A simple question... Pin
Chris Losinger23-Jul-01 9:23
professionalChris Losinger23-Jul-01 9:23 
GeneralI've tried it but... Pin
23-Jul-01 12:35
suss23-Jul-01 12:35 
GeneralRe: I've tried it but... Pin
Paolo Messina23-Jul-01 12:45
professionalPaolo Messina23-Jul-01 12:45 
GeneralRe: I've tried it but... Pin
Andrew Peace23-Jul-01 13:05
Andrew Peace23-Jul-01 13:05 
GeneralRe: I've tried it but... Pin
Reid23-Jul-01 13:37
Reid23-Jul-01 13:37 
GeneralRe: I've tried it but... Pin
Andrew Peace23-Jul-01 13:44
Andrew Peace23-Jul-01 13:44 
GeneralRe: I've tried it but... Pin
23-Jul-01 23:19
suss23-Jul-01 23:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.