Print Page | Close Window

Resize & hide edit

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=10237
Printed Date: 14 November 2025 at 8:02pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Resize & hide edit
Posted By: jimmy
Subject: Resize & hide edit
Date Posted: 15 April 2008 at 11:02am
Hello,

i have 2 edit on a XTResize dialog.
One is visible and the other is invisible.
After resize the dialog, both edit are visible.
Why ?

  Jimmy





Replies:
Posted By: jimmy
Date Posted: 15 April 2008 at 11:20am
Hi,

Forgotten to say, that one of the edit is a CXTHexEdit.
I think there is a problem in the CXTHexEdit::OnSize,
if the control is hidden.

  Jimmy




Posted By: jimmy
Date Posted: 15 April 2008 at 11:23am
Also see
SetRedraw(false);
but SetRedraw have BOOL not bool.

  Jimmy



Posted By: Oleg
Date Posted: 15 April 2008 at 11:52am
Hi,
Hm. How do you hide it ?


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: jimmy
Date Posted: 15 April 2008 at 12:30pm
ShowWindow(SW_HIDE)

It's v11.1.3.
Also tested with 12.0b3
Put
    m_editHex.ShowWindow(SW_HIDE);
on end of OnInitDialog from HexEdit sample.

  Jimmy



Posted By: jimmy
Date Posted: 16 April 2008 at 4:03am
Hello,

In DoVScroll(UINT nSBCode, bool bMoveCaret)
SetRedraw(true) is calling. And this make the hidden window visible.
Please correct this for finished 12.0.

 Thanks
  Jimmy




Posted By: Oleg
Date Posted: 16 April 2008 at 4:28am
Hi,
Indeed. :( Fixed. Thanks.
 
Strange that SetRedraw API shows hidden window....


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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