Click here to Skip to main content
15,915,797 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralProbelm regarding cpp Pin
SamirSood1-Jul-02 4:44
SamirSood1-Jul-02 4:44 
GeneralRe: Probelm regarding cpp Pin
[James Pullicino]1-Jul-02 5:06
[James Pullicino]1-Jul-02 5:06 
GeneralCEdit Control Co-Ordinates Pin
Chavez1-Jul-02 4:18
Chavez1-Jul-02 4:18 
GeneralRe: CEdit Control Co-Ordinates Pin
dazinith1-Jul-02 4:41
dazinith1-Jul-02 4:41 
GeneralNeed a DialogBar HOWTO Pin
bisserke1-Jul-02 3:56
bisserke1-Jul-02 3:56 
GeneralRe: Need a DialogBar HOWTO Pin
[James Pullicino]1-Jul-02 4:00
[James Pullicino]1-Jul-02 4:00 
GeneralRe: Need a DialogBar HOWTO Pin
bisserke1-Jul-02 4:07
bisserke1-Jul-02 4:07 
GeneralRe: Need a DialogBar HOWTO Pin
[James Pullicino]1-Jul-02 5:15
[James Pullicino]1-Jul-02 5:15 
I don't know about child windows, but catching there messages might involve overrriding the following function: CControlBar::WindowProc()

Check the source code for it and you will see something like this:

<br />
LRESULT CControlBar::WindowProc(UINT nMsg, WPARAM wParam, LPARAM lParam)<br />
{<br />
    ASSERT_VALID(this);<br />
<br />
    // Parent notification messages are just passed to parent of control bar.<br />
    switch (nMsg)<br />
    {<br />
    case WM_COMMAND:<br />
    case WM_DRAWITEM:<br />
    case WM_MEASUREITEM:<br />
    case WM_DELETEITEM:<br />
    case WM_COMPAREITEM:<br />
    case WM_VKEYTOITEM:<br />
    case WM_CHARTOITEM:<br />
        return ::SendMessage(::GetParent(m_hWnd), nMsg, wParam, lParam);<br />
    }<br />
    return CWnd::WindowProc(nMsg, wParam, lParam);<br />
}<br />


Add the desired messages you wish to capture after
case WM_CHARTOITEM:

For more info, search for the following article in the MSDN:

Using CDialogBar in 32-Bit MDI Applications
Nigel Thompson
Microsoft Developer Network Technology Group
Created: September 27, 1994

James

Drinking In The Sun
Forgot Password?
QuestionHow do you remove or hide the Menu in an MDI window (CMDIFrameWnd)? Pin
1-Jul-02 3:32
suss1-Jul-02 3:32 
AnswerRe: How do you remove or hide the Menu in an MDI window (CMDIFrameWnd)? Pin
[James Pullicino]1-Jul-02 4:06
[James Pullicino]1-Jul-02 4:06 
GeneralRe: How do you remove or hide the Menu in an MDI window (CMDIFrameWnd)? Pin
1-Jul-02 5:46
suss1-Jul-02 5:46 
Generaldialog from property sheet? (newbie) Pin
1-Jul-02 3:09
suss1-Jul-02 3:09 
GeneralRe: dialog from property sheet? (newbie) Pin
Prem Kumar1-Jul-02 4:47
Prem Kumar1-Jul-02 4:47 
GeneralAttach to process Pin
Hans Ruck1-Jul-02 2:53
Hans Ruck1-Jul-02 2:53 
GeneralRe: Attach to process Pin
Hans Ruck1-Jul-02 3:14
Hans Ruck1-Jul-02 3:14 
GeneralATL service stopping Pin
Hans Ruck1-Jul-02 2:19
Hans Ruck1-Jul-02 2:19 
GeneralRe: ATL service stopping Pin
Christian Graus1-Jul-02 2:27
protectorChristian Graus1-Jul-02 2:27 
GeneralRe: ATL service stopping Pin
Hans Ruck1-Jul-02 2:36
Hans Ruck1-Jul-02 2:36 
GeneralRe: ATL service stopping Pin
Bill Wilson1-Jul-02 9:38
Bill Wilson1-Jul-02 9:38 
QuestionHow to prevent a CFileDialog Box from resizing? Pin
Erik1-Jul-02 2:06
Erik1-Jul-02 2:06 
AnswerRe: How to prevent a CFileDialog Box from resizing? Pin
Prem Kumar1-Jul-02 4:51
Prem Kumar1-Jul-02 4:51 
GeneralRe: How to prevent a CFileDialog Box from resizing? Pin
Erik1-Jul-02 19:02
Erik1-Jul-02 19:02 
GeneralI/O Completion Port Pin
unknown soldier1-Jul-02 0:59
unknown soldier1-Jul-02 0:59 
GeneralRe: I/O Completion Port Pin
Len Holgate1-Jul-02 8:53
Len Holgate1-Jul-02 8:53 
GeneralHigh scale chat server Pin
1-Jul-02 0:47
suss1-Jul-02 0:47 

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.