News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

TOOLINFO structure

Started by diablo2oo2, September 26, 2005, 05:22:40 PM

Previous topic - Next topic

diablo2oo2

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;

hutch--

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.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php