Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CEditPane + WS_VSCROLL = paint problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CEditPane + WS_VSCROLL = paint problem

 Post Reply Post Reply
Author
Message
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Topic: CEditPane + WS_VSCROLL = paint problem
    Posted: 13 December 2009 at 7:23pm
XTP 13.2.1.
 
I modified your PaneSample as follows:
 
if (!m_wndPanes.CreateEx(WS_EX_STATICEDGE, _T("EDIT"), _T(""),
    WS_CHILD|WS_VSCROLL|ES_MULTILINE, CRect(0, 0,0, 0), this, IDR_PANE1 + i))
   {
    TRACE0( "Error creating pane edit control.\n" );
   }
 
After that change, the WM_NCPAINT message causes weird painting on the scrollbar. Can you please tell me how to get this working? (I need your CEditPane + WS_VSCROLL!)
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 14 December 2009 at 6:14am
Hi,
 
Just remove its WindowProc implementation. Or call original WindowProc for WM_NCPAINT before draw Frame.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 14 December 2009 at 6:34am
Thanks, I'll try that.
(I want that nice border that your edit control has got, so removing the code is not an option :P)
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.250 seconds.