Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Windows Message when get maximize ot restore

Posted on 2004-08-02
Medium Priority
Last Modified: 2013-11-20
What the message will window send when it get maximize or restore on nonclient area of the Window.If we do it on client window that time it will send WM_GETMINMAXINFO.But I am not getting the message when it maximize or restore on non client window.CAn any one help me.
Question by:nclgaurav
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
  • 3
LVL 16

Expert Comment

by:Kiran Paul VJ
ID: 11691454

paste this code in your OnSysCommand function

if ((nID & 0xFFF0) == SC_MAXIMIZE)

if ((nID & 0xFFF0) == SC_RESTORE)

if ((nID & 0xFFF0) == SC_MINIMIZE)

hope this helps


Author Comment

ID: 11691960
Actually this is a Win32 Application.Here I am hooking the mouse and keyboard.So wat I have to .
LVL 16

Accepted Solution

Kiran Paul VJ earned 100 total points
ID: 11692371
try this

in function  WindowProc(.......    , write

if(message == WM_SYSCOMMAND && wParam == SC_MINIMIZE)

if(message == WM_SYSCOMMAND && wParam == SC_MAXIMIZE)
if(message == WM_SYSCOMMAND && wParam == SC_RESTORE)

where message is the message identifier.

LVL 16

Expert Comment

by:Kiran Paul VJ
ID: 12017032
hi, DanRollins

i think i deserve some points.... ;-)


Featured Post

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

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

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 …
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
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.
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses

688 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