Program is minimized message interception , following that yes ah?

Category: VC/MFC -> UI Author: rockxiroz Date: 2006-08-10 09:37:41
 
rockxiroz
2006-08-10 09:37:41
< 00190 >   002F0898   S   .WM_MOUSEACTIVATE   hwndTopLevel: 002F0898   nHittest: HTCAPTION   uMsg: WM_LBUTTONDOWN
< 00191 >   002F0898   R   .WM_MOUSEACTIVATE   fuActivate: MA_NOACTIVATE
< 00192 >   002F0898   S   .WM_SETCURSOR   hwnd: 002F0898   nHittest: HTCAPTION   wMouseMsg: WM_LBUTTONDOWN
< 00193 >   002F0898   R   .WM_SETCURSOR   fHaltProcessing: False
< 00194 >   002F0898   P   WM_NCLBUTTONDOWN   nHittest: HTCAPTION   xPos: 746   yPos: 97
< 00195 >   002F0898   S   .WM_WINDOWPOSCHANGING   lpwp: 0012FBE4
< 00196 >   002F0898   S   .. WM_GETMINMAXINFO   lpmmi: 0012F6AC
< 00197 >   002F0898   R   .. WM_GETMINMAXINFO   lpmmi: 0012F7D8
< 00198 >   002F0898   R   .WM_WINDOWPOSCHANGING
< 00199 >   002F0898   S   .WM_NCCALCSIZE   fCalcValidRects: True   lpncsp: 0012FB84
< 00200 >   002F0898   R   .WM_NCCALCSIZE   fuValidRect: 0000   lpncsp: 0012FCD8
< 00201 >   002F0898   S   .WM_WINDOWPOSCHANGING   lpwp: 0012FBE4
< 00202 >   002F0898   R   .WM_WINDOWPOSCHANGING
< 00203 >   002F0898   S   .WM_ACTIVATEAPP   fActive: True   dwThreadID: 00000000
< 00204 >   002F0898   R   .WM_ACTIVATEAPP
< 00205 >   002F0898   S   .WM_NCACTIVATE   fActive: True
< 00206 >   002F0898   R   .WM_NCACTIVATE
< 00207 >   002F0898   S   .WM_ACTIVATE   fActive: WA_ACTIVE   fMinimized: True   hwndPrevious: (null)
< 00208 >   002F0898   S   .. WM_ACTIVATETOPLEVEL   fActive: True   dwThreadID: 0012F94C
< 00209 >   002F0898   R   .. WM_ACTIVATETOPLEVEL
< 00210 >   002F0898   R   .WM_ACTIVATE
< 00211 >   002F0898   S   .WM_NCPAINT   hrgn: 00000001
< 00212 >   002F0898   R   .WM_NCPAINT
< 00213 >   002F0898   S   .WM_WINDOWPOSCHANGED   lpwp: 0012FBE4
< 00214 >   002F0898   S   .. WM_MOVE   xPos: 33536   yPos: 33536
< 00215 >   002F0898   R   .. WM_MOVE
< 00216 >   002F0898   S   .. WM_SIZE   fwSizeType: SIZE_MINIMIZED   nWidth: 0   nHeight: 0
zjmchn
2006-08-10 09:55:41
interception WM_SYSCOMMAND message.
wParam equal SC_MINIMIZE when the window is minimized, when the window is maximized equal SC_MAXIMIZE
emilyss
2006-08-10 10:12:12
WM_WINDOWPOSCHANGING

LPARAM of WINDOWPOS.flags contains an undocumented   SWP_SYTLECHANGED mark , then you can send WM_GETMINMAXINFO that specifically will be maximized or minimized
haishangzhiqiu
2006-08-10 10:20:24
WM_SYSCOMMAND   Notification

-------------- -------------------------------------------------- ----------------

A   window   receives   this   message   when   the   user   chooses   a   command   from   the   Window   menu   (formerly   known   as   the   system   or   control   menu)   or   when   the   user   chooses   the   maximize   button,   minimize   button,   restore   button ,   or   close   button

Syntax

WM_SYSCOMMAND

 .       WPARAM   wParam
        LPARAM   lParam;
       
Parameters

wParam
Specifies   the   type   of   system   command   requested  . This   parameter   can   be   one   of   the   following   values ​​ .
SC_CLOSE
Closes   the   window
SC_CONTEXTHELP <br. />Changes the cursor to a question mark with a pointer. If the user then clicks a control in the dialog box, the  control   receives   a   WM_HELP  . message
SC_DEFAULT
Selects   the   default   item;   the   user   double-clicked   the   window  . menu
SC_HOTKEY
Activates the window associated with the application-specified hot key. The lParam parameter identifies the window to activate.
SC_HSCROLL
Scrolls  . horizontally
SC_KEYMENU
Retrieves   the   window   menu   as   a   result   of   a  . keystroke   For   more   information,   see   the   Remarks   section.
SC_MAXIMIZE
Maximizes   the  . window
SC_MINIMIZE
Minimizes   the  . window
SC_MONITORPOWER
Sets   the   state   of   the   display .   This   command   supports   devices   that   have   power-saving   features,   such   as   a   battery-powered   personal  . computer  
The   lParam   parameter   can   have   the   following   values:

1   -   the   display   is   going   to   low   power

2   -   the   display   is   being   shut   off

SC_MOUSEMENU
Retrieves   the   window   menu   as   a   result   of   a   mouse  . click
SC_MOVE
Moves   the  . window
SC_NEXTWINDOW
Moves   to   the   next  . window
SC_PREVWINDOW
Moves   to   the   previous   window <br /. > SC_RESTORE
Restores   the   window   to   its   normal   position   and  . size
SC_SCREENSAVE
Executes   the   screen   saver   application   specified   in   the   [ boot]   section   of   the   System.ini  . file
SC_SIZE
Sizes   the  . window
SC_TASKLIST
Activates   the   Start   menu <br. /> SC_VSCROLL
Scrolls   vertically
lParam
The  . low-order   word   specifies   the   horizontal   position   of   the   cursor,   in   screen   coordinates,   if   a   window   menu   command   is   chosen   with   the   mouse  . Otherwise,   this   parameter   is   not  . used  
The   high-order   word   specifies   the   vertical   position   of   the   cursor,   in   screen   coordinates,   if   a   window   menu   command   is   chosen   with   the   mouse  . This   parameter   is   -1   if   the   command   is   chosen   using   a   system   accelerator,   or   zero   if   using   a   mnemonic  .
alan_jackson123
2006-08-10 10:22:47
last one   002F0898   S   .. WM_SIZE   fwSizeType: SIZE_MINIMIZED   nWidth: 0   nHeight: 0 is you want to minimize
zcwxtd082900
2006-08-10 10:31:13
PostMessage (WM_SYSCOMMAND,   SC_MINIMIZE);
q979236867
2006-08-10 10:37:48


has not happened this time is minimized
hk0070
2006-08-10 10:43:15

last one has been minimized over, the state said in onsize just right
hbfsp
2006-08-10 10:54:30

my 00190 >   002F0898   S   .WM_MOUSEACTIVATE   hwndTopLevel: 002F0898   nHittest: HTCAPTION   uMsg: WM_LBUTTONDOWN
this message is a mouse click on the minimize button in response , so spy ++ intercepted messages , including WM_SYSCOMMAND
billmax1001
2006-08-10 11:06:17
Hello
edition moderator
this post I have no concern for many days
.Please knot posts
if you think the problem is not resolved knot can no satisfactory treatment
posts set
another edition and has been top in the relevant provisions of its layout
are described
your posts you can submit your links
posts under the knot as you currently do not want to quote just replies description
we will delete this post notification

knot Seeing reply within three days of no response
We will enforce the relevant provisions of the junction posts
detailed interface