Click here to Skip to main content
16,010,523 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
I do not have very much time, so here is a code snippet from a WTL dialog example, you should be able to simply translate teh code to MFC. This will not repaint any custom parts, however it will prevent any portion of the borders and caption from being painted.

LRESULT OnNCActivate(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
{
        //Perform your custom activation here.
 
        //This is the key to prevent the caption from being painted 
        //by the system
	::SetWindowLong(m_hWnd, DWL_MSGRESULT, FALSE);
	return TRUE;
}

LRESULT OnNCPaint(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
{
        //You should call the defDlgProc for here.

        //Preform your custom caption painting here.

return TRUE;
}

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 
GeneralRe: ATLControls.H -- > Size of my DLL Pin
Mazdak18-Mar-02 4:18
Mazdak18-Mar-02 4:18 
GeneralActiveX Translation Engine Pin
dlhson18-Mar-02 3:40
dlhson18-Mar-02 3:40 
GeneralRe: ActiveX Translation Engine Pin
Mazdak18-Mar-02 4:23
Mazdak18-Mar-02 4:23 
GeneralRe: ActiveX Translation Engine Pin
dlhson18-Mar-02 4:37
dlhson18-Mar-02 4:37 
GeneralRe: ActiveX Translation Engine Pin
Michael P Butler18-Mar-02 4:59
Michael P Butler18-Mar-02 4:59 

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.