Click here to Skip to main content
15,881,803 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
Questiona simple question Pin
minihotto16-Oct-06 18:02
minihotto16-Oct-06 18:02 
AnswerRe: a simple question Pin
With_problem16-Oct-06 18:29
With_problem16-Oct-06 18:29 
AnswerRe: a simple question Pin
ThatsAlok16-Oct-06 18:35
ThatsAlok16-Oct-06 18:35 
AnswerRe: a simple question Pin
Steve S16-Oct-06 21:41
Steve S16-Oct-06 21:41 
Questionerror....with oledb connection string Pin
With_problem16-Oct-06 17:31
With_problem16-Oct-06 17:31 
AnswerRe: error....with oledb connection string Pin
Hamid_RT16-Oct-06 19:21
Hamid_RT16-Oct-06 19:21 
GeneralRe: error....with oledb connection string Pin
With_problem16-Oct-06 19:29
With_problem16-Oct-06 19:29 
AnswerRe: error....with oledb connection string Pin
prasad_som16-Oct-06 19:38
prasad_som16-Oct-06 19:38 
AnswerRe: error....with oledb connection string Pin
Mark Salsbery17-Oct-06 7:16
Mark Salsbery17-Oct-06 7:16 
QuestionLive Redirection Pin
rupert_durans16-Oct-06 16:54
rupert_durans16-Oct-06 16:54 
AnswerRe: Live Redirection Pin
Owner drawn16-Oct-06 19:28
Owner drawn16-Oct-06 19:28 
GeneralRe: Live Redirection Pin
rupert_durans16-Oct-06 22:00
rupert_durans16-Oct-06 22:00 
QuestionDll Loading Visual Studio 6.0 VC++ Pin
ccp99916-Oct-06 14:30
ccp99916-Oct-06 14:30 
AnswerRe: Dll Loading Visual Studio 6.0 VC++ Pin
prasad_som16-Oct-06 19:45
prasad_som16-Oct-06 19:45 

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.