Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Controls
  New Posts New Posts RSS Feed - Bug - CXTPEdit Resize v. 13.0
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Bug - CXTPEdit Resize v. 13.0

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

Joined: 08 January 2007
Location: United States
Status: Offline
Points: 217
Post Options Post Options   Thanks (0) Thanks(0)   Quote Algae Quote  Post ReplyReply Direct Link To This Post Topic: Bug - CXTPEdit Resize v. 13.0
    Posted: 04 June 2009 at 10:00pm
I haven't had a chance to dig into the code much, but found a bug with borders not drawing properly when a CXTPEdit control is resized using MoveWindow.

Example:

assume that m_cNotes is type CXTPEdit with borders displayed. We want to expand it to the right 100.

        CRect noteRect;
        m_cNotes.GetWindowRect(&noteRect);
        ScreenToClient(&noteRect);
        noteRect.right += 100;
        m_cNotes.MoveWindow(noteRect);

The result is that the borders (upper, lower) seem to draw only to the extent of the original size while the right border is not visible. Replacing the CXTPEdit control with a standard CEdit control draws completely. The control from 10.42 that I used previously works as well.

*Note: In my scenario I am obscuring another edit window with the edit control, but I don't think it matters.


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.141 seconds.