The MASM Forum Archive 2004 to 2012

Project Support Forums => MASM32 => WINDOWS.INC Project => Topic started by: diablo2oo2 on September 26, 2005, 05:22:40 PM

Title: TOOLINFO structure
Post by: diablo2oo2 on September 26, 2005, 05:22:40 PM
there is a little difference between the toolinfo structure from masm and msdn page.

hWnd in masm
hwnd in msdn

hInst in masm
hinst in msdn

is that ok?


TOOLINFO STRUCT
  cbSize             DWORD      ?
  uFlags             DWORD      ?
  hWnd               DWORD      ?
  uId                DWORD      ?
  rect               RECT      <>
  hInst              DWORD      ?
  lpszText           DWORD      ?
  lParam             LPARAM     ?
TOOLINFO ENDS



typedef struct tagTOOLINFO{
    UINT      cbSize;
    UINT      uFlags;
    HWND      hwnd;
    UINT_PTR  uId;
    RECT      rect;
    HINSTANCE hinst;
    LPTSTR    lpszText;
#if (_WIN32_IE >= 0x0300)
    LPARAM lParam;
#endif
} TOOLINFO, NEAR *PTOOLINFO, *LPTOOLINFO;
Title: Re: TOOLINFO structure
Post by: hutch-- on September 26, 2005, 11:01:17 PM
diablo2oo2,

The structure works fine but these things have changed in reference over time so its not a problem. The problem with changing it after it has been in that form for so long is it will break code that has used the existing form.