Print Page | Close Window

CEditPane + WS_VSCROLL = paint problem

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=15839
Printed Date: 21 June 2025 at 5:08pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CEditPane + WS_VSCROLL = paint problem
Posted By: znakeeye
Subject: CEditPane + WS_VSCROLL = paint problem
Date 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!)



Replies:
Posted By: Oleg
Date 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


Posted By: znakeeye
Date 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)



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net