STATUS.H
资源名称:MSDN_VC98.zip [点击查看]
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:1k
源码类别:
Windows编程
开发平台:
Visual C++
- /*************************************************************************
- **
- ** OLE 2.0 Sample Code
- **
- ** status.h
- **
- ** This file contains typedefs, defines, global variable declarations,
- ** and function prototypes for the status bar window.
- **
- ** (c) Copyright Microsoft Corp. 1992 - 1996 All Rights Reserved
- **
- *************************************************************************/
- // Sizes of statusbar items
- #if defined( USE_STATUSBAR )
- #define STATUS_HEIGHT 23
- #else
- #define STATUS_HEIGHT 0
- #endif
- #define STATUS_RLEFT 8
- #define STATUS_RRIGHT 400
- #define STATUS_RTOP 3
- #define STATUS_RBOTTOM 20
- #define STATUS_TTOP 4
- #define STATUS_TLEFT 11
- #define STATUS_THEIGHT 18
- typedef enum {
- STATUS_READY,
- STATUS_BLANK
- } STATCONTROL;
- // Window for status bar.
- extern HWND hwndStatusbar;
- BOOL RegisterStatusClass(HINSTANCE hInstance);
- HWND CreateStatusWindow(HWND hWndApp, HINSTANCE hInst);
- void DestroyStatusWindow(HWND hWndStatusBar);
- void AssignPopupMessage(HMENU hmenuPopup, char *szMessage);
- void SetStatusText(HWND hWndStatusBar, LPSTR lpszMessage);
- void GetItemMessage(UINT wIDItem, LPSTR FAR* lplpszMessage);
- void GetPopupMessage(HMENU hmenuPopup, LPSTR FAR* lplpszMessage);
- void GetSysMenuMessage(UINT wIDItem, LPSTR FAR* lplpszMessage);
- void GetControlMessage(STATCONTROL scCommand, LPSTR FAR* lplpszMessage);