003
03.06.2005, 22:18 Uhr
~DerAltenburger
Gast
|
So hab ich nen Schnapp- Schiesser gebaut!
in .h:
#define MYWM_SNAPSHOOT (WM_APP+103)
MESSAGE_HANDLER(MYWM_SNAPSHOOT,TMessage,MySnapShoot)
in FormCreate der Form:
RegisterHotKey(ScreenShotWin->Handle,MYWM_SNAPSHOOT,0,VK_SNAPSHOT);
in FormClose der Form
UnregisterHotKey(ScreenShotWin->Handle,MYWM_SNAPSHOOT);
Handler in cpp: void __fastcall TScreenShotWin::MySnapShoot(TMessage& Msg) { //Hier das, was passieren soll } |