CEditPane + WS_VSCROLL = paint problem |
Post Reply |
Author | |
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
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!)
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Just remove its WindowProc implementation. Or call original WindowProc for WM_NCPAINT before draw Frame.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
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)
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |