Click here to Skip to main content
15,888,579 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionPreTranslate Message problem Pin
_tasleem8-Oct-07 6:38
_tasleem8-Oct-07 6:38 
AnswerRe: PreTranslate Message problem Pin
Mark Salsbery8-Oct-07 7:32
Mark Salsbery8-Oct-07 7:32 
GeneralRe: PreTranslate Message problem Pin
_tasleem9-Oct-07 7:23
_tasleem9-Oct-07 7:23 
GeneralRe: PreTranslate Message problem Pin
Mark Salsbery9-Oct-07 7:56
Mark Salsbery9-Oct-07 7:56 
AnswerRe: PreTranslate Message problem Pin
santhoshv848-Oct-07 17:15
santhoshv848-Oct-07 17:15 
GeneralRe: PreTranslate Message problem Pin
chandu0048-Oct-07 22:04
chandu0048-Oct-07 22:04 
Questionradio button Pin
viliam8-Oct-07 6:35
viliam8-Oct-07 6:35 
AnswerRe: radio button Pin
Mark Salsbery8-Oct-07 7:05
Mark Salsbery8-Oct-07 7:05 
Try playing around with this...
    ON_MESSAGE(WM_CTLCOLORSTATIC, OnCtlColorStatic)

...

// Just an example - there's stuff in this method you don't need
//   and/or that isn't used

LRESULT CMyDlg::OnCtlColorStatic( WPARAM wParam, LPARAM lParam)
{
    LRESULT lRet = Default();

    HDC hDC = (HDC)wParam;
    HWND hWnd = (HWND)lParam;

    ::SetTextColor(hDC, RGB(0x00,0xFF,0xFF));
    //::SetBkColor(hDC, RGB(0xFF,0x00,0x00));
    ::SetBkMode(hDC, TRANSPARENT);

    //return lRet;
    return (LRESULT)::GetStockObject(NULL_BRUSH);
}

Don't ask me why WM_CTLCOLORSTATIC is used for radio buttons,
check boxes, and group boxes Smile | :)   Maybe because their text is static!

Mark



Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: radio button Pin
viliam8-Oct-07 7:51
viliam8-Oct-07 7:51 
GeneralRe: radio button Pin
Mark Salsbery8-Oct-07 8:05
Mark Salsbery8-Oct-07 8:05 
GeneralRe: radio button Pin
viliam8-Oct-07 8:36
viliam8-Oct-07 8:36 
QuestionAdvanced Pointers and References [modified] Pin
aquawicket8-Oct-07 5:05
aquawicket8-Oct-07 5:05 
AnswerRe: Advanced Pointers and References Pin
toxcct8-Oct-07 5:11
toxcct8-Oct-07 5:11 
GeneralRe: Advanced Pointers and References Pin
aquawicket8-Oct-07 5:15
aquawicket8-Oct-07 5:15 
GeneralRe: Advanced Pointers and References Pin
toxcct8-Oct-07 5:21
toxcct8-Oct-07 5:21 
GeneralRe: Advanced Pointers and References Pin
aquawicket8-Oct-07 5:29
aquawicket8-Oct-07 5:29 
GeneralRe: Advanced Pointers and References Pin
toxcct8-Oct-07 5:38
toxcct8-Oct-07 5:38 
GeneralRe: Advanced Pointers and References Pin
aquawicket8-Oct-07 5:42
aquawicket8-Oct-07 5:42 
GeneralRe: Advanced Pointers and References Pin
aquawicket8-Oct-07 6:31
aquawicket8-Oct-07 6:31 
Questionerror no such interface supported Pin
jomons8-Oct-07 4:28
jomons8-Oct-07 4:28 
AnswerRe: error no such interface supported Pin
Iain Clarke, Warrior Programmer8-Oct-07 6:31
Iain Clarke, Warrior Programmer8-Oct-07 6:31 
QuestionHorizontal scroll bar for CListCtrl(report view) Pin
shir_k8-Oct-07 4:05
shir_k8-Oct-07 4:05 
QuestionGenerate class diagrams - VS2005 MFC C++ Pin
Andy H8-Oct-07 3:43
Andy H8-Oct-07 3:43 
AnswerRe: Generate class diagrams - VS2005 MFC C++ Pin
Maxwell Chen8-Oct-07 21:45
Maxwell Chen8-Oct-07 21:45 
QuestionCan Some one please help me out very urgent ? Pin
oronnorh8-Oct-07 3:23
oronnorh8-Oct-07 3:23 

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.