CXTResizeDialog + OCX = problem |
Post Reply |
Author | |
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
Posted: 08 October 2008 at 7:47am |
XTP 12.0.1. This error only occurs for some OCX controls (mainly our own). I have a dialog with an OCX control.
BOOL CMyDialog::OnInitDialog()
{
SetFlag(xtResizeNoSizeIcon);
CXTResizeDialog::OnInitDialog();
SetResize(...);
SetResize(IDC_OCX_CONTROL, ...);
// This solves the problem:
// CRect rect;
// GetClientRect(rect);
// int cx = rect.Width();
// int cy = rect.Height();
// SendMessage(WM_SIZE, SIZE_RESTORED, MAKELPARAM(cx, cy));
return TRUE;
}
The OCX will not be sized properly until a WM_SIZE message is sent! What could be the cause?
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |