Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Resize & hide edit
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Resize & hide edit

 Post Reply Post Reply
Author
Message
jimmy View Drop Down
Senior Member
Senior Member


Joined: 11 November 2003
Location: Austria
Status: Offline
Points: 516
Post Options Post Options   Thanks (0) Thanks(0)   Quote jimmy Quote  Post ReplyReply Direct Link To This Post Topic: Resize & hide edit
    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


Back to Top
jimmy View Drop Down
Senior Member
Senior Member


Joined: 11 November 2003
Location: Austria
Status: Offline
Points: 516
Post Options Post Options   Thanks (0) Thanks(0)   Quote jimmy Quote  Post ReplyReply Direct Link To This Post 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


Back to Top
jimmy View Drop Down
Senior Member
Senior Member


Joined: 11 November 2003
Location: Austria
Status: Offline
Points: 516
Post Options Post Options   Thanks (0) Thanks(0)   Quote jimmy Quote  Post ReplyReply Direct Link To This Post Posted: 15 April 2008 at 11:23am
Also see
SetRedraw(false);
but SetRedraw have BOOL not bool.

  Jimmy

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 15 April 2008 at 11:52am
Hi,
Hm. How do you hide it ?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
jimmy View Drop Down
Senior Member
Senior Member


Joined: 11 November 2003
Location: Austria
Status: Offline
Points: 516
Post Options Post Options   Thanks (0) Thanks(0)   Quote jimmy Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
jimmy View Drop Down
Senior Member
Senior Member


Joined: 11 November 2003
Location: Austria
Status: Offline
Points: 516
Post Options Post Options   Thanks (0) Thanks(0)   Quote jimmy Quote  Post ReplyReply Direct Link To This Post 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


Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 16 April 2008 at 4:28am
Hi,
Indeed. :( Fixed. Thanks.
 
Strange that SetRedraw API shows hidden window....
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.047 seconds.