?
Solved

Double Left Click of MDI bypass

Posted on 2002-03-22
2
Medium Priority
?
176 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 8

Accepted Solution

by:
VinExpert earned 800 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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.
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

770 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