Click here to Skip to main content
15,919,479 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: service systray icons Pin
Mark Salsbery17-Oct-06 7:12
Mark Salsbery17-Oct-06 7:12 
AnswerRe: service systray icons Pin
ThatsAlok18-Oct-06 2:19
ThatsAlok18-Oct-06 2:19 
Questionmodifying the system image list fails in Vista Pin
indra2016-Oct-06 21:17
indra2016-Oct-06 21:17 
QuestionRe: modifying the system image list fails in Vista Pin
David Crow17-Oct-06 3:13
David Crow17-Oct-06 3:13 
QuestionLink error question Pin
GDavy16-Oct-06 20:53
GDavy16-Oct-06 20:53 
AnswerRe: Link error question Pin
prasad_som16-Oct-06 21:16
prasad_som16-Oct-06 21:16 
GeneralRe: Link error question Pin
GDavy16-Oct-06 21:20
GDavy16-Oct-06 21:20 
QuestionRe: Link error question Pin
prasad_som16-Oct-06 21:27
prasad_som16-Oct-06 21:27 
AnswerRe: Which certification suites for VC++ MFC programmer Pin
David Crow17-Oct-06 3:18
David Crow17-Oct-06 3:18 
QuestionImporting outlook contacts Pin
Mithin16-Oct-06 20:43
Mithin16-Oct-06 20:43 
AnswerRe: Importing outlook contacts Pin
Umesh KV Guptha16-Oct-06 20:57
Umesh KV Guptha16-Oct-06 20:57 
GeneralRe: Importing outlook contacts Pin
Mithin16-Oct-06 21:13
Mithin16-Oct-06 21:13 
GeneralRe: Importing outlook contacts Pin
ThatsAlok16-Oct-06 23:40
ThatsAlok16-Oct-06 23:40 
AnswerRe: Importing outlook contacts Pin
David Crow17-Oct-06 4:26
David Crow17-Oct-06 4:26 
Questionenable logging capability Pin
mt_samiei16-Oct-06 20:35
mt_samiei16-Oct-06 20:35 
AnswerRe: enable logging capability Pin
Parthi_Appu16-Oct-06 20:47
Parthi_Appu16-Oct-06 20:47 
GeneralRe: enable logging capability Pin
Steve S16-Oct-06 21:38
Steve S16-Oct-06 21:38 
GeneralRe: enable logging capability Pin
Parthi_Appu16-Oct-06 22:39
Parthi_Appu16-Oct-06 22:39 
QuestionProviding Auto Scroll Feature to CListCtrl Pin
vijay_aroli16-Oct-06 19:51
vijay_aroli16-Oct-06 19:51 
AnswerRe: Providing Auto Scroll Feature to CListCtrl Pin
Owner drawn16-Oct-06 20:02
Owner drawn16-Oct-06 20:02 
GeneralRe: Providing Auto Scroll Feature to CListCtrl Pin
vijay_aroli16-Oct-06 20:19
vijay_aroli16-Oct-06 20:19 
QuestionCustom title bar Pin
Waldermort16-Oct-06 18:58
Waldermort16-Oct-06 18:58 
I have created a custom window in which all the non-client area is redefined. I have custom borders, a custom title bar and custom min/max/close buttons. For the most part everything is working as I want, but I'm having some serious trouble handling button clicks.

I handle the WM_NCHITTEST returning the appropriate code for the new window area. I want DefWindowProc() to handle most of the functionality, but it is really messing things up. When the close button is clicked a WM_NCLBUTTONDOWN message is sent. If I handle this and return 0, a WM_NCLBUTTONUP message is sent (if a button was clicked), but the window is unable to be resized, also the window does not close. If I allow DefWindowProc() to handle the message, the window can be resized but a WM_NCLBUTTONUP message is never sent, again nothing happens when clicking the button.

I have tried using spy++ to monitor messages of other windows behaviour, but I cannot see much difference. From the docs, I read that DefWindowProc() will send the appropriate WM_SYSCOMMAND message, but I can't understand why it is not working within my code.

Does anybody have an idea what I am doing wrong, what I am missing or not handling correctly? Also, is there any way to see the code for DefWindowProc() (possibly a unix/wine variant) to help me understand what is happening behind the scenes.
AnswerRe: Custom title bar Pin
Owner drawn16-Oct-06 19:20
Owner drawn16-Oct-06 19:20 
GeneralRe: Custom title bar Pin
Waldermort16-Oct-06 20:04
Waldermort16-Oct-06 20:04 
GeneralRe: Custom title bar Pin
Waldermort17-Oct-06 16:53
Waldermort17-Oct-06 16: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.