Click here to Skip to main content
15,914,014 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDrag & Drop Pin
Li Mu Bai18-Mar-02 5:53
Li Mu Bai18-Mar-02 5:53 
GeneralRe: Drag & Drop Pin
Tomasz Sowinski18-Mar-02 5:55
Tomasz Sowinski18-Mar-02 5:55 
GeneralFlickering list control Pin
Andrew Stampor18-Mar-02 5:26
Andrew Stampor18-Mar-02 5:26 
GeneralRe: Flickering list control Pin
Tomasz Sowinski18-Mar-02 5:43
Tomasz Sowinski18-Mar-02 5:43 
GeneralRe: Flickering list control Pin
Andrew Stampor18-Mar-02 6:36
Andrew Stampor18-Mar-02 6:36 
GeneralRe: Flickering list control Pin
Tomasz Sowinski18-Mar-02 7:06
Tomasz Sowinski18-Mar-02 7:06 
GeneralRe: Flickering list control Pin
Andrew Stampor18-Mar-02 10:36
Andrew Stampor18-Mar-02 10:36 
QuestionSame caption problem as before, what am I doing wrong? Pin
generic_user_id18-Mar-02 5:10
generic_user_id18-Mar-02 5:10 
I'm trying to draw the caption of a dialog myself, but windows keeps painting the button on the caption bar.

Kilowatt said I had to put SetWindowLong(hDlg, DWL_MSGRESULT, FALSE); in the WM_NCACTIVATE handler, but adding that doesn't work with me.

Probably I made a stupid mistake somewhere, or I forgot some obvious code, but simply adding the above code doesn't do anything at all. (SetWindowLong returns 0, when hDlg == m_hDlg)

[edit]
I forgot to mention that I return TRUE in WM_NCACTIVATE
[/edit]

What can I possibly be doing wrong, please help me.

Thanks a lot in advance!
AnswerRe: Same caption problem as before, what am I doing wrong? Pin
Paul M Watt18-Mar-02 5:32
mentorPaul M Watt18-Mar-02 5:32 
GeneralRe: Same caption problem as before, what am I doing wrong? Pin
generic_user_id18-Mar-02 5:57
generic_user_id18-Mar-02 5:57 
GeneralRe: Same caption problem as before, what am I doing wrong? Pin
Ravi Bhavnani18-Mar-02 6:21
professionalRavi Bhavnani18-Mar-02 6:21 
GeneralRe: Same caption problem as before, what am I doing wrong? Pin
generic_user_id18-Mar-02 6:56
generic_user_id18-Mar-02 6:56 
GeneralRe: Same caption problem as before, what am I doing wrong? Pin
Paul M Watt18-Mar-02 7:50
mentorPaul M Watt18-Mar-02 7:50 
GeneralRe: Same caption problem as before, what am I doing wrong? Pin
generic_user_id18-Mar-02 9:24
generic_user_id18-Mar-02 9:24 
GeneralRe: Same caption problem as before, what am I doing wrong? Pin
Paul M Watt18-Mar-02 9:48
mentorPaul M Watt18-Mar-02 9:48 
GeneralRe: Same caption problem as before, what am I doing wrong? Pin
generic_user_id18-Mar-02 11:06
generic_user_id18-Mar-02 11:06 
GeneralActiveX problem Pin
18-Mar-02 4:49
suss18-Mar-02 4:49 
GeneralRe: ActiveX problem Pin
Michael P Butler18-Mar-02 4:55
Michael P Butler18-Mar-02 4:55 
GeneralRe: ActiveX problem Pin
Derek Waters18-Mar-02 11:14
Derek Waters18-Mar-02 11:14 
GeneralRe: ActiveX problem Pin
Derek Lakin18-Mar-02 20:07
Derek Lakin18-Mar-02 20:07 
GeneralRe: ActiveX problem Pin
Derek Waters19-Mar-02 11:34
Derek Waters19-Mar-02 11:34 
GeneralRe: ActiveX problem Pin
Derek Lakin19-Mar-02 23:18
Derek Lakin19-Mar-02 23:18 
GeneralWS_TABSTOP Pin
Jim Hewitt18-Mar-02 4:02
Jim Hewitt18-Mar-02 4:02 
GeneralRe: WS_TABSTOP Pin
Tomasz Sowinski18-Mar-02 4:11
Tomasz Sowinski18-Mar-02 4:11 
GeneralATLControls.H -- > Size of my DLL Pin
Braulio Dez18-Mar-02 4:05
Braulio Dez18-Mar-02 4:05 

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.