Solved

Double Left Click of MDI bypass

Posted on 2002-03-22
2
154 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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 video discusses moving either the default database or any database to a new volume.

760 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now