Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Cameron
|
Feb 1, 2010 - 3:04 PM
|
hello, i am using Prof-UIS 2.88 with visual studio 6.0. i have CExtEdit controls created on both dialog templates and dynamically created within a CExtNCSB< CExtWS < CScrollView > >, both with the WS_BORDER style. the CExtEdit controls on the dialog templates have a theme-colored border, while the dynamically created CExtEdit controls have a plain black border. any ideas as to why this might be happening? thanks in advance for any help you can provide. regards, cameron
|
|
Technical Support
|
Feb 2, 2010 - 2:12 PM
|
We suspect you created an edit control with zero non-client area. This is why the CExtEdit class is unable to draw borders. Please use the dynamic editor creation code like this:
CRect rcEdit( . . . );
UINT nEditID = . . .
CExtEdit * pEdit = new CExtEdit;
VERIFY( pEdit->Create( WS_CHILD|WS_VISIBLE|WS_CLIPSIBLINGS, rcEdit, this, nEditID ) );
pEdit->SetFont( CFont::FromHandle( (HFONT)::GetStockObject(DEFAULT_GUI_FONT) ) );
pEdit->ModifyStyleEx( 0, WS_EX_CLIENTEDGE, SWP_FRAMECHANGED );
The last line is important. It reserves non-client area space.
|
|