Click here to Skip to main content
15,927,803 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Is my compile error a hardware problem? Pin
Michael P Butler24-Nov-01 23:49
Michael P Butler24-Nov-01 23:49 
GeneralRe: Is my compile error a hardware problem? Pin
Nish Nishant25-Nov-01 0:04
sitebuilderNish Nishant25-Nov-01 0:04 
GeneralRe: Is my compile error a hardware problem? Pin
Anders Molin25-Nov-01 1:27
professionalAnders Molin25-Nov-01 1:27 
GeneralProblem with the line-break Pin
labanga24-Nov-01 22:30
labanga24-Nov-01 22:30 
Questionhow do i change the background of a checkbox? Pin
24-Nov-01 15:37
suss24-Nov-01 15:37 
AnswerRe: how do i change the background of a checkbox? Pin
Nish Nishant24-Nov-01 18:46
sitebuilderNish Nishant24-Nov-01 18:46 
GeneralRe: how do i change the background of a checkbox? Pin
24-Nov-01 20:49
suss24-Nov-01 20:49 
GeneralRe: how do i change the background of a checkbox? Pin
24-Nov-01 21:18
suss24-Nov-01 21:18 
hey, here's what i came up with for filling the backgorund.
i have the following in OnCtlColor

//**********
HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);

// TODO: Change any attributes of the DC here

if(nCtlColor==CTLCOLOR_STATIC )
{
CBrush br;
CRect rc;
hbr = CreateSolidBrush( RGB( 255, 255, 255 ) );
m_1_sub_folders.ScreenToClient(rc);
br.Attach(hbr);
pDC->SetBkColor( RGB(255,255,255));
pDC->FillRect(rc,&br);
br.Detach();
}

// TODO: Return a different brush if the default is not desired
return hbr;
//**********

it works, but is there some other way to do it?
Thank you.
GeneralRegistration error Pin
Peter Liddle24-Nov-01 13:28
Peter Liddle24-Nov-01 13:28 
GeneralRe: Registration error Pin
24-Nov-01 23:13
suss24-Nov-01 23:13 
GeneralRe: Registration error Pin
Peter Liddle25-Nov-01 1:29
Peter Liddle25-Nov-01 1:29 
GeneralRe: Registration error Pin
Peter Liddle25-Nov-01 1:35
Peter Liddle25-Nov-01 1:35 
GeneralRe: Registration error Pin
Peter Liddle25-Nov-01 2:26
Peter Liddle25-Nov-01 2:26 
GeneralRe: Registration error Pin
Peter Liddle25-Nov-01 2:47
Peter Liddle25-Nov-01 2:47 
QuestionHow to deal with it? Pin
owen_200124-Nov-01 13:09
owen_200124-Nov-01 13:09 
AnswerRe: How to deal with it? Pin
Nish Nishant24-Nov-01 14:23
sitebuilderNish Nishant24-Nov-01 14:23 
QuestionWM_CLOSE minimizes the app!? Pin
Rickard Andersson2024-Nov-01 10:50
Rickard Andersson2024-Nov-01 10:50 
AnswerRe: WM_CLOSE minimizes the app!? Pin
Nish Nishant24-Nov-01 14:26
sitebuilderNish Nishant24-Nov-01 14:26 
GeneralRe: Check SPY++ Pin
Masaaki Onishi24-Nov-01 17:02
Masaaki Onishi24-Nov-01 17:02 
QuestionHow can I convert a hex string to float, and vice-versa. Pin
John Uhlenbrock24-Nov-01 10:24
John Uhlenbrock24-Nov-01 10:24 
AnswerRe: How can I convert a hex string to float, and vice-versa. Pin
Tim Deveaux25-Nov-01 4:31
Tim Deveaux25-Nov-01 4:31 
GeneralCtrl+Alt+Del Pin
Rickard Andersson2024-Nov-01 8:09
Rickard Andersson2024-Nov-01 8:09 
GeneralRe: Ctrl+Alt+Del Pin
24-Nov-01 8:35
suss24-Nov-01 8:35 
GeneralListView control and dragging hyperlinks Pin
Michael P Butler24-Nov-01 8:02
Michael P Butler24-Nov-01 8:02 
GeneralRe: ListView control and dragging hyperlinks Pin
Michael Dunn24-Nov-01 8:43
sitebuilderMichael Dunn24-Nov-01 8:43 

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.