home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.misc
- Path: sparky!uunet!utcsri!torn!cunews!nrcnet0!emr1!jagrant
- From: jagrant@emr1.emr.ca (John Grant)
- Subject: PDRAWITEMSTRUCT vs LPDRAWITEMSTRUCT
- Message-ID: <1992Sep16.043204.4822@emr1.emr.ca>
- Organization: Energy, Mines, and Resources, Ottawa
- References: <1992Sep16.042818.4073@emr1.emr.ca>
- Date: Wed, 16 Sep 1992 04:32:04 GMT
- Lines: 19
-
- I am confused over the use of LPDRAWITEMSTRUCT & PDRAWITEMSTRUCT.
- Help for LPDRAWITEMSTRUCT says this is a 32-bit pointer and says I
- should use PDRAWITEMSTRUCT instead and let the memory model decide
- on the size of the pointer.
-
- But, in help for WM_DRAWITEM, the example is something like:
- LPDRAWITEMSTRUCT lpdis;
- ...
- lpdis=(DRAWITEMSTRUCT FAR *)lparam;
- ...
-
- So...
- 1. why didn't they just say:
- lpdis=(LPDRAWITEMSTRUCT)lparam;
- since it is already defined for them
-
- 2. why didn't they just use PDRAWITEMSTRUCT and let the memory
- model take care of the pointer size? How did they know it
- had to be FAR (i.e. LPDRAWITEMSTRUCT)?
-