Click here to Skip to main content
15,920,896 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to resize window automatic. Pin
Cedric Moonen6-Apr-08 23:04
Cedric Moonen6-Apr-08 23:04 
GeneralRe: How to resize window automatic. Pin
ThatsAlok7-Apr-08 2:49
ThatsAlok7-Apr-08 2:49 
AnswerRe: How to resize window automatic. Pin
ThatsAlok6-Apr-08 22:41
ThatsAlok6-Apr-08 22:41 
AnswerRe: How to resize window automatic. Pin
David Crow7-Apr-08 3:56
David Crow7-Apr-08 3:56 
AnswerRe: How to resize window automatic. Pin
Nitheesh George7-Apr-08 5:41
Nitheesh George7-Apr-08 5:41 
AnswerRe: How to resize window automatic. Pin
Hamid_RT8-Apr-08 7:22
Hamid_RT8-Apr-08 7:22 
Generalvirtual BOOL PreTranslateMessage(MSG* pMsg); Pin
TalSt6-Apr-08 21:15
TalSt6-Apr-08 21:15 
GeneralRe: virtual BOOL PreTranslateMessage(MSG* pMsg); Pin
Nibu babu thomas6-Apr-08 21:35
Nibu babu thomas6-Apr-08 21:35 
TalSt wrote:
I would like to stop all messages to the window taskbar. I try to use the PreTranslateMessage function and it seems that the messages to the taskbar are not sending throw this function. Do you know a way to catch the messages?


Use GetWindowLong and GWL_WNDPROC to get a window's main procedure address and replace it with your own version using SetWindowLong.

Now messages to the window which you hooked should go via your WindowProc. Store replaced WindowProc ptr to use with CallWindowProc to do default stuff. Don't forget to replace back this ptr when your application exits!


Nibu thomas
Microsoft MVP for VC++


Code must be written to be read, not by the compiler, but by another human being.

Programming Blog: http://nibuthomas.wordpress.com

GeneralRe: virtual BOOL PreTranslateMessage(MSG* pMsg); Pin
TalSt6-Apr-08 22:39
TalSt6-Apr-08 22:39 
GeneralRe: virtual BOOL PreTranslateMessage(MSG* pMsg); Pin
Nibu babu thomas6-Apr-08 22:51
Nibu babu thomas6-Apr-08 22:51 
GeneralRe: virtual BOOL PreTranslateMessage(MSG* pMsg); Pin
Stephen Hewitt7-Apr-08 15:31
Stephen Hewitt7-Apr-08 15:31 
Generaldeleting a empty folder from a specified path Pin
neha.agarwal276-Apr-08 20:58
neha.agarwal276-Apr-08 20:58 
GeneralRe: deleting a empty folder from a specified path Pin
Michael Schubert6-Apr-08 21:42
Michael Schubert6-Apr-08 21:42 
Questionhow to use lineHold() to put a call on hold [modified] Pin
sauravpratik926-Apr-08 20:33
sauravpratik926-Apr-08 20:33 
Questionhow to run dll using Rundll32.exe [modified] Pin
nitin36-Apr-08 20:18
nitin36-Apr-08 20:18 
AnswerRe: how to run dll using Rundll32.exe Pin
CPallini6-Apr-08 21:32
mveCPallini6-Apr-08 21:32 
GeneralRe: how to run dll using Rundll32.exe Pin
nitin36-Apr-08 21:48
nitin36-Apr-08 21:48 
GeneralRe: how to run dll using Rundll32.exe Pin
CPallini6-Apr-08 23:43
mveCPallini6-Apr-08 23:43 
JokeRe: how to run dll using Rundll32.exe Pin
ThatsAlok6-Apr-08 22:47
ThatsAlok6-Apr-08 22:47 
Generalcheck how much bytes are transsferred from port 21 Pin
chetanjoshi96-Apr-08 20:01
chetanjoshi96-Apr-08 20:01 
Generalcalculate how much bytes transfferd by putfile() function Pin
chetanjoshi96-Apr-08 19:59
chetanjoshi96-Apr-08 19:59 
GeneralRe: calculate how much bytes transfferd by putfile() function Pin
ThatsAlok6-Apr-08 22:54
ThatsAlok6-Apr-08 22:54 
GeneralCheck Internet speed Pin
chetanjoshi96-Apr-08 19:58
chetanjoshi96-Apr-08 19:58 
GeneralRe: Check Internet speed Pin
ThatsAlok6-Apr-08 22:50
ThatsAlok6-Apr-08 22:50 
GeneralCComMultiThreadModelNoCS Pin
George_George6-Apr-08 19:53
George_George6-Apr-08 19:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.