Click here to Skip to main content
15,903,523 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Difference between C and C++. Pin
David Crow24-May-07 3:45
David Crow24-May-07 3:45 
Questionhow to add dynamically in a combo box? Pin
bigphish23-May-07 22:47
bigphish23-May-07 22:47 
AnswerRe: how to add dynamically in a combo box? Pin
Naveen23-May-07 22:53
Naveen23-May-07 22:53 
AnswerRe: how to add dynamically in a combo box? Pin
Hamid_RT23-May-07 23:17
Hamid_RT23-May-07 23:17 
QuestionC++ command in line question Pin
C_Zealot23-May-07 22:46
C_Zealot23-May-07 22:46 
AnswerRe: C++ command in line question Pin
Naveen23-May-07 22:51
Naveen23-May-07 22:51 
GeneralRe: C++ command in line question Pin
C_Zealot23-May-07 22:52
C_Zealot23-May-07 22:52 
Questionhow to change CDialog's background color Pin
Peter, Chan23-May-07 22:35
Peter, Chan23-May-07 22:35 
:->I have created a class CSkinDesignerDlg derived from CDialog.As its default background color is too normal,I want to change its color.After having searched on the web,I find a way to change its color.Draw its back color in function "OnPaint()",just like below:
void CSkinDesignerDlg::OnPaint()
{
................
CPaintDC dc(this);
CRect rect;
GetClientRect(rect);
dc.FillSolidRect(rect, RGB(0,0,255));
.................
}

As I will always need to show or hide this Dialog form in my program,there will be a shimmer in my program.Is there anybody know some better way to change the background color.
AnswerRe: how to change CDialog's background color Pin
baerten23-May-07 22:44
baerten23-May-07 22:44 
GeneralRe: how to change CDialog's background color Pin
Peter, Chan24-May-07 0:18
Peter, Chan24-May-07 0:18 
GeneralRe: how to change CDialog's background color Pin
Hamid_RT24-May-07 0:51
Hamid_RT24-May-07 0:51 
GeneralRe: how to change CDialog's background color Pin
Peter, Chan24-May-07 21:14
Peter, Chan24-May-07 21:14 
GeneralRe: how to change CDialog's background color Pin
Hamid_RT24-May-07 21:40
Hamid_RT24-May-07 21:40 
AnswerRe: how to change CDialog's background color Pin
Hamid_RT23-May-07 23:17
Hamid_RT23-May-07 23:17 
AnswerRe: how to change CDialog's background color Pin
James R. Twine24-May-07 1:07
James R. Twine24-May-07 1:07 
GeneralRe: how to change CDialog's background color Pin
Peter, Chan24-May-07 21:11
Peter, Chan24-May-07 21:11 
QuestionHelp about capDlgVideoSource Pin
kcynic23-May-07 22:33
kcynic23-May-07 22:33 
AnswerRe: Help about capDlgVideoSource Pin
Mark Salsbery24-May-07 7:05
Mark Salsbery24-May-07 7:05 
QuestionDLL Initialization Failed Pin
Tal S.23-May-07 22:32
Tal S.23-May-07 22:32 
QuestionIs it possible to give window message different priority ? Pin
GameProfessor23-May-07 22:14
GameProfessor23-May-07 22:14 
AnswerRe: Is it possible to give window message different priority ? Pin
Roger Stoltz23-May-07 23:28
Roger Stoltz23-May-07 23:28 
QuestionObject Ids for my menu options Pin
prithaa23-May-07 21:56
prithaa23-May-07 21:56 
QuestionRe: Object Ids for my menu options Pin
Naveen23-May-07 22:06
Naveen23-May-07 22:06 
AnswerRe: Object Ids for my menu options Pin
prithaa23-May-07 23:18
prithaa23-May-07 23:18 
GeneralRe: Object Ids for my menu options Pin
Naveen23-May-07 23:25
Naveen23-May-07 23:25 

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.