English
Forum

Minimize intercept

 
- Page 1 -



Christian
Schneider
Hi,

there irgendeine Possibility The Minimierung the Mainwindow (by System Menu) abzufangen and the whole self into hand To take (so How with close by User Messages 16)?
 
XProfan 11| Vista(64) SP2
01/22/08  
 



 
- Page 1 -


RGH
m erstgenannten drop we The Original Fensterprozedur not any more called and the ggf. with Return angegebene worth becomes the Aufrufer zurückgeliefert. in the second drop becomes subsequently The ursprüngliche Fensterprozedur called.


Jau!
 
01/22/08  
 




Frank
Abbing
just as meant I it...
 
01/22/08  
 



short ask to, if I in the Minibrowser these 2 Lines hinzufüge:
CompileMarkSeparation
might the hWnd still not aktivierbar his, correctly?

we means withal return 0 to original wndproc weitergeleitet?
 
01/22/08  
 




RGH
iF
short ask to, if I in the Minibrowser these 2 Lines hinzufüge:
CompileMarkSeparation
might the hWnd still not aktivierbar his, correctly?


the return 0 You do not need once. by the SubClassMessage() have You The Message treats and the ursprüngliche Fensterprozedur becomes none More called. in the example, I in the Thread about Subclassing posted have, comes ~wm_close indeed not any more on.

BTW: Why in the Minibrowser? Verwechselst You The Examples?

Greeting
Roland
 
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
01/22/08  
 



I faith I verwechsle The Examples, correctly!

but What is with my question? the hWnd is nevertheless aktivierbar what imho not correctly is. (I hope I verwechsle now not too yet The Message)
 
01/22/08  
 



 
- Page 2 -



RGH
I see: so How I the understand, divides these essage the Window only with, DASS it activate (or. deaktiviert, according to WPARAM) watts and of course exakt after this happen is. The Message veranlaßt not the enable or Deaktivieren. moreover is the API activateWindow zuständig ... if I me right entsinne. (I Have The API not complete in the head.)

Greeting Roland
 
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
01/22/08  
 



Hm, there be I me strain not sure - I mean me To remind that I on this ways already the enable prevent could - too the Deaktivieren. i'll well within a dll the XProfan hwnd gesubclasst having. The GUI has the window obviously not activate or deaktiviert with Anwahl by mouse or keyboard. I hope I verwechsle The Message not!

unfortunately here (yet) no Tools to hand...

@Frank: can You strain time NEN InlineASM provide which the XProfan-hWnd subclasst and wm_activate abfängt?
 
01/22/08  
 




RGH
and circa to that Threadthema zurückzukommen:

it should The Message wm_syscommand quizzed go. In wParam is then, which Systemkommando abgesetz watts. The Verkleinerungsbutton has the value sc_minimize.

ACHTUNG: If to the as User Message declared or ex XProfan 11 in the Subclassing abfängt, must one hereon respect, on The others Systemkommandos correctly To react, otherwise can the window z.B. not any more without employment the Taskmanagers closed go.

Greeting
Roland
 
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
01/22/08  
 




Frank
Abbing

@Frank: can You strain time NEN InlineASM provide which the XProfan-hWnd subclasst and wm_activate abfängt?


Yes. but a Fensteraktivierung can itself with WM_ACTIVATE so not prevent. is only a Message, that activate watts?
 
01/23/08  
 




Christian
Schneider
RGH
it should The Message wm_syscommand quizzed go. In wParam is then, which Systemkommando abgesetz watts. The Verkleinerungsbutton has the value sc_minimize.


thanks, so funktionierts.

if it time someone need ought to, here The values of &Wparam for...

close: 20
minimize: 8
The normal display (to Minimierung): 61728
old+F4: 61536
 
XProfan 11| Vista(64) SP2
01/23/08  
 




Jac
de
Lad
Poste please times one Minimalbeispiel.
 
Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE)
Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP
01/23/08  
 



back to that Sub-Topic:
CompileMarkSeparation
nowmactivateproc proc hWnd:DWORD, uMsg:DWORD, wParam:DWORD, lParam:DWORD
pushall

.if uMsg==WM_NCACTIVATE

    popall
    mov eax,0
    ret

.endif

popall
invoke CallWindowProc,oldproc,hWnd,uMsg,wParam,lParam
ret
nowmactivateproc CompileMarkSeparation
 {$cleq}
Set(FastMode,1)
Def Cwp(5) !user32,CallWindowProcA
Declare Ex%,_owp&,Sb&
DEF CreateStatusBar(6) @control(msctls_statusbar32,@$(2),add(000256,$50800040-16),@%(3),@%(4),@%(5),@%(6),@%(1),100, %HInstance)
windowstyle 512+8
window 100,100 - 640,480
_owp&:=External(user32,SetWindowLongA,%Hwnd,-4, Procaddr(_wproc,4))

Whilenot Ex%

    Waitinput

Endwhile

End

Proc _wproc

    Parameters Wnd&, Msg&, Wparam&, Lparam&

    If (Msg&==16)// close

        Ex%:=1

    Elseif (Msg& == WM_NCACTIVATE)

        return 0

    endif

    Return Cwp(_owp&,Wnd&, Msg&, Wparam&, Lparam&)

Endproc


unfortunately have I now here again strain not whom aktuellsten XProfan-Compiler to hand so I WM_NCACTIVATE not inside the SubClassProc testing can. might the someone try and here post?
CompileMarkSeparation
I mean me To remind it too allows to have the one Window not yet once reacted / into Vordergrund gotten becomes after one it anwählt - gleichwohl but any daraufliegenden Controls thoroughly empfangsfähig were. I empfand it as Manko not by windowStyle take on to.

its naturally correctly. that the intercepting the Minimierens so happen can:
CompileMarkSeparation
Proc _wproc

    ...

Elseif (Msg& == wm_syscommand)

    case wparam&==sc_minimize : return 0
    ...

Endproc


Since I How already erwähnt here strain no newest XProfan Compiler To hand have would so did i gladly know whether the MinMax-Geschenen with the SubClassProc To deal is. (faith the XProfan11 missing for another own Peek/Poke)

745 kB
Hochgeladen:01/23/08
Downloadcounter84
Download
 
01/23/08  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

1.612 Views

Untitledvor 0 min.
Joerg06/16/16
Ernst03/14/15
E.T.12/25/14
RICOSCH12/17/11

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie