Thank you Chris
------------------
Announcement
Collapse
No announcement yet.
Need help with DDT
Collapse
X
-
Guest replied
-
Torte, try this :
Code:CASE %WM_GETMINMAXINFO ' TYPE MINMAXINFO ' ptReserved AS POINTAPI ' ptMaxSize AS POINTAPI ' ptMaxPosition AS POINTAPI ' ptMinTrackSize AS POINTAPI ' ptMaxTrackSize AS POINTAPI ' END TYPE ' you should let Windows process it first before you modify the values RV&=DefWindowProc(hDlg, Msg, wParam, lParam) DIM MM AS MINMAXINFO PTR MM=lParam @MM.ptMinTrackSize.x=8 ' min set to 8 pixels @MM.ptMinTrackSize.y=8 ' min set to 8 pixels FUNCTION=0 EXIT FUNCTION
------------------
Leave a comment:
-
Guest repliedWith VB i can size a window to the half of the DDT minimum size
in width. The height is both minimum the caption height.
-----------------
edited by author
OOOOPS
I AM VERY SORRY,
THANK YOU FOR YOUR INFO
------------------
[This message has been edited by Torte Torsten (edited July 12, 2001).]
Leave a comment:
-
DDT or SDK - not important.
I tested WM_GETMINMAXINFO (DDT) under Win2000 - limit is 40 * 27 (pixels !, not units).
------------------
E-MAIL: [email protected]
Leave a comment:
-
You may be able to override this limit of Windows by
processing the WM_GETMINMAXINFO message for the Dialog.
I haven't tried it with DDT Dialogs, but I know it works for child
(controls) windows which allow dragging their edges.
Windows sends the WM_GETMINMAXINFO to find out what the Maximum and
Minimum sizes for a Window can be. This is how Windows knows how big
to make a window whn you maximize it. The sames goes for its minimum
size.
------------------
Leave a comment:
-
Torte --
That's a Windows thing, not a DDT problem.
Try manually resizing any Windows application (Notepad, Word, Netscape, whatever) and you will see that Windows enforces a certain minimum size.
I suspect that to create a main window that is smaller than that, you would have to eliminate the title bar.
-- Eric
------------------
Perfect Sync Development Tools
Perfect Sync Web Site
Contact Us: mailto:[email protected][email protected]</A>
[This message has been edited by Eric Pearson (edited July 12, 2001).]
Leave a comment:
-
Need help with DDT
'hi folks
'The Dialog, created with the following line of code
DIALOG NEW 0& ,"",80,80,40,30, %WS_THICKFRAME , TO m_hWndSubFormat
'will never be 40x30 but 100x30
'is there any way to make the dialog 40x30 using DDT or
'a window style?
'thx in advance
------------------
Tags: None
Leave a comment: