www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/06/21/20:47:05

From: GamerX_ AT usa DOT net (Dylan Griffiths)
Subject: Updated Windows header files.
21 Jun 1998 20:47:05 -0700 :
Message-ID: <000301bd9d63$6a03d0c0$8155a58e.cygnus.gnu-win32@hssktn129.sk.sympatico.ca>
Reply-To: GamerX_ AT usa DOT net
Mime-Version: 1.0
To: "Gnu Win32 Mailing list" <gnu-win32 AT cygnus DOT com>

The windows header files included with B19 don't define everything.   I'm
going to be making a few changes to have them match up with my Win32 API
reference I have handy..  The first change has to do with the MINMAXINFO
structure (i386-cygwin32\include\Windows32\Structures.h):

typedef struct tagMINMAXINFO {
  POINT ptReserved;
  POINT ptMaxSize;
  POINT ptMaxPosition;
  POINT ptMinTrackSize;
  POINT ptMaxTrackSize;
} MINMAXINFO, *LPMINMAXINFO;

This adds the LPMINMAXINFO to the define, which is used to make my Win32
program not size smaller than some min values I have defined.

In case you're wondering, the code is as follows  (in the window procedure):
    case WM_GETMINMAXINFO:
    {
       ((LPMINMAXINFO) lParam)->ptMinTrackSize.x = iWidth;
       ((LPMINMAXINFO) lParam)->ptMinTrackSize.y = iHeight;
       return(1);
    }

It is important to return 1 since we do not process the message, but merely
hook it and make sure that the values are good for the min x and min y pixel
size.


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019