Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change
Quote from: NoCforMe on Today at 06:15:31 AMQuote from: zedd151 on Today at 06:11:19 AMEasy enough to find out which it is--just use WinSpy.Quote from: NoCforMe on Today at 06:08:07 AM[1] Which I assume is the window size, not the client size.Exactly - Sounds ambiguous.
Quote from: zedd151 on Today at 06:11:19 AMEasy enough to find out which it is--just use WinSpy.Quote from: NoCforMe on Today at 06:08:07 AM[1] Which I assume is the window size, not the client size.Exactly - Sounds ambiguous.
Quote from: NoCforMe on Today at 06:08:07 AM[1] Which I assume is the window size, not the client size.Exactly - Sounds ambiguous.
Quote from: zedd151 on Today at 05:58:48 AMIt doesn't do that.Quote from: NoCforMe on Today at 05:54:07 AMGetWindowRect() gives you the location of the window in relation to the "real world" (i.e., the desktop)...
For some reason that is what I originally thought that MapDialogRect was supposed to do. I don't remember reading anywhere that it fills in the RECT structure with the client area... if it is the MS docs, I had missed it.
QuoteConverts the specified dialog box units to screen units (pixels). The function replaces the coordinates in the specified RECT structure with the converted coordinates, which allows the structure to be used to create a dialog box or position a control within a dialog box.
Quote from: NoCforMe on Today at 05:54:07 AMGetWindowRect() gives you the location of the window in relation to the "real world" (i.e., the desktop)...
Quote from: NoCforMe on Today at 03:56:12 AMWell, Larry, that's the whole point.
The conversion takes dialog units and gives you screen units.
GetClientRect( just confirms this by giving you those same screen units, which shows that the whole thing worked correctly.
Quote from: zedd151 on April 19, 2025, 03:23:09 PMActually I was expecting MapDialogRect to return the screen coordinates of the entire dialog box, its position on the screen and by extension, its size in the left,top,right,bottom members of the structure.I was not expecting the client RECT.![]()