Solved

Double Left Click of MDI bypass

Posted on 2002-03-22
2
161 Views
Last Modified: 2013-11-20
I have a MDI app.  When the uses double-left clicks the child caption, the default behavior is to maximizes the child.  How do I bypass the double left mouse click on the child MDI caption bar?  All suggestions welcome and code samples greatly appreciated.
0
Comment
Question by:Surfer
2 Comments
 
LVL 8

Accepted Solution

by:
VinExpert earned 200 total points
ID: 6888198
Hi,

Using class wizard map the WindowProc function to ur child frame class and modify that function as


LRESULT CChildFrame::WindowProc(UINT message, WPARAM wParam, LPARAM lParam)
{
     if((message == WM_NCLBUTTONDBLCLK) && (wParam == HTCAPTION))
     {
          AfxMessageBox("Hit Caption of child!!!");
          return 0;//I am terminating as I dont want my child frame to maximize!!!
     }
     return CMDIChildWnd::WindowProc(message, wParam, lParam);
}

That will give u access when user double clicks on caption bar.
Try it out.
VinExpert
0
 

Author Comment

by:Surfer
ID: 6888214
Just what I needed!
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question