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

C / C++ / MFC

 
GeneralRe: Dividing the bits in a 16 bit short value Pin
JudyL_MD11-Apr-08 2:42
JudyL_MD11-Apr-08 2:42 
GeneralRe: Dividing the bits in a 16 bit short value Pin
CPallini11-Apr-08 3:30
mveCPallini11-Apr-08 3:30 
GeneralRe: Dividing the bits in a 16 bit short value Pin
ChemmieBro11-Apr-08 4:15
ChemmieBro11-Apr-08 4:15 
GeneralRe: Dividing the bits in a 16 bit short value Pin
CPallini11-Apr-08 4:41
mveCPallini11-Apr-08 4:41 
GeneralRe: Dividing the bits in a 16 bit short value Pin
ChemmieBro11-Apr-08 4:48
ChemmieBro11-Apr-08 4:48 
Questionhow to set background color in visual studio 2005 and how to call matlab by MFC/C++?? Pin
johndoelee11-Apr-08 1:58
johndoelee11-Apr-08 1:58 
AnswerRe: how to set background color in visual studio 2005 and how to call matlab by MFC/C++?? [modified] Pin
Nitheesh George11-Apr-08 4:43
Nitheesh George11-Apr-08 4:43 
GeneralRe: how to set background color in visual studio 2005 and how to call matlab by MFC/C++?? Pin
johndoelee11-Apr-08 8:30
johndoelee11-Apr-08 8:30 
Dear Nitheesh,

I am still not able to change the background color after I tried the code below. As I'm a beginner of c++, would you please point out the deficit or improper use of code. Thank you very much!

HBRUSH CMyAppView::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = CScrollView::OnCtlColor(pDC, pWnd, nCtlColor);

if(nCtlColor == CTLCOLOR_DLG)
{
hbr = CreateSolidBrush(RGB(2,22,222));
}
return hbr;
}

Cheers,
john
AnswerRe: how to set background color in visual studio 2005 and how to call matlab by MFC/C++?? Pin
Hamid_RT12-Apr-08 5:47
Hamid_RT12-Apr-08 5:47 
QuestionAdapter Type? Pin
Ajay L D11-Apr-08 0:46
Ajay L D11-Apr-08 0:46 
GeneralRe: Adapter Type? Pin
Gavin Taylor11-Apr-08 1:57
professionalGavin Taylor11-Apr-08 1:57 
Questionhow Chnage default backgroung color of Title bar Pin
ingoogle10-Apr-08 23:49
ingoogle10-Apr-08 23:49 
AnswerRe: how Chnage default backgroung color of Title bar Pin
followait11-Apr-08 0:37
followait11-Apr-08 0:37 
GeneralRe: how Chnage default backgroung color of Title bar Pin
ingoogle13-Apr-08 19:58
ingoogle13-Apr-08 19:58 
GeneralRe: how Chnage default backgroung color of Title bar Pin
followait13-Apr-08 22:55
followait13-Apr-08 22:55 
AnswerRe: how Chnage default backgroung color of Title bar Pin
Maximilien11-Apr-08 2:17
Maximilien11-Apr-08 2:17 
GeneralRe: how Chnage default backgroung color of Title bar Pin
ingoogle13-Apr-08 20:07
ingoogle13-Apr-08 20:07 
AnswerRe: how Chnage default backgroung color of Title bar Pin
Hamid_RT12-Apr-08 5:46
Hamid_RT12-Apr-08 5:46 
GeneralRe: how Chnage default backgroung color of Title bar Pin
ingoogle13-Apr-08 20:02
ingoogle13-Apr-08 20:02 
GeneralCreate a button whose id is ID_FILE_NEW, not be processed by CWinApp::OnFileNew Pin
followait10-Apr-08 23:39
followait10-Apr-08 23:39 
GeneralRe: Create a button whose id is ID_FILE_NEW, not be processed by CWinApp::OnFileNew Pin
Nitheesh George11-Apr-08 2:03
Nitheesh George11-Apr-08 2:03 
GeneralRe: Create a button whose id is ID_FILE_NEW, not be processed by CWinApp::OnFileNew Pin
followait11-Apr-08 3:41
followait11-Apr-08 3:41 
GeneralRe: Create a button whose id is ID_FILE_NEW, not be processed by CWinApp::OnFileNew Pin
Nitheesh George11-Apr-08 4:29
Nitheesh George11-Apr-08 4:29 
GeneralRe: Create a button whose id is ID_FILE_NEW, not be processed by CWinApp::OnFileNew Pin
followait11-Apr-08 5:22
followait11-Apr-08 5:22 
GeneralRe: Create a button whose id is ID_FILE_NEW, not be processed by CWinApp::OnFileNew Pin
Nitheesh George11-Apr-08 6:45
Nitheesh George11-Apr-08 6:45 

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.