SHAppBarMessage Function (OpenInsight 32-bit Specific)
At 17 NOV 2003 12:26:10PM Richard Hunt wrote:
Can anyone guide me on using this Windows function. The syntax is as follows…
UINT_PTR SHAppBarMessage(DWORD dwMessage, PAPPBARDATA pData)
Its the "PAPPBARDATA pData" structure that is confusing me. How would you create it in OI?
The syntax for it is as follows…
typedef struct _AppBarData {
DWORD cbSize;HWND hWnd;UINT uCallbackMessage;UINT uEdge;RECT rc;LPARAM lParam;} APPBARDATA, *PAPPBARDATA;
Members
cbSize
Contains the size of the structure, in bytes.
hWnd
Contains the handle to the appbar window.
uCallbackMessage
Application-defined message identifier. The application uses the specified identifier for notification messages that it sends to the appbar identified by the hWnd member. This member is used when sending the ABM_NEW message.
uEdge
Value that specifies an edge of the screen. This member is used when sending the ABM_GETAUTOHIDEBAR, ABM_QUERYPOS, ABM_SETAUTOHIDEBAR, and ABM_SETPOS messages. This member can be one of the following
values:
ABE_BOTTOM
Bottom edge.
ABE_LEFT
Left edge.
ABE_RIGHT
Right edge.
ABE_TOP
Top edge.
rc
RECT structure to contain the bounding rectangle, in screen coordinates, of an appbar or the Microsoft Windows taskbar. This member is used when sending the ABM_GETTASKBARPOS, ABM_QUERYPOS, and
ABM_SETPOS messages.
lParam
Message-dependent value. This member is used with the
ABM_SETAUTOHIDEBAR and ABM_SETSTATE messages.