Annotation of mstools/mfc/include/afxnt.h, revision 1.1.1.2

1.1       root        1: #ifndef WINVER
                      2: #error Please do not include this file independently, #include <afxwin.h>
                      3: #endif
                      4: 
1.1.1.2 ! root        5: // WM_CTLCOLOR for 16 bit API compatability
1.1       root        6: #define WM_CTLCOLOR        0x0019
                      7: 
                      8: //////////////////////////////////////////////////////////////////////////////
                      9: // NOTE:
                     10: // The remaining declarations and definitions will not be present in
                     11: // the final product.  These are a required because of textual inconsistencies
                     12: // in the Windows NT interface files.  Please ignore these.
                     13: 
1.1.1.2 ! root       14: DECLARE_HANDLE(HTASK);
        !            15: 
1.1       root       16: extern "C" 
                     17: {
                     18: BOOL    WINAPI SubtractRect(RECT FAR*, const RECT FAR*, const RECT FAR*);
                     19: BOOL    WINAPI QueryAbort(HDC, int);
                     20: }
                     21: 
                     22: #undef LoadString
1.1.1.2 ! root       23: inline int LoadString(HINSTANCE hInstance, UINT uID,
1.1       root       24:                LPSTR lpBuffer, int nBufferMax)
                     25: #ifdef UNICODE
                     26:        { return ::LoadStringW(hInstance, uID, lpBuffer, nBufferMax); }
                     27: #else
                     28:        { return ::LoadStringA(hInstance, uID, lpBuffer, nBufferMax); }
                     29: #endif
                     30: 
                     31: #undef AnsiToOem
                     32: inline BOOL AnsiToOem(LPCSTR lpcstr, LPSTR lpstr)
                     33:        { return ::CharToOemA(lpcstr, lpstr); }
                     34: 
                     35: #undef OemToAnsi
                     36: inline BOOL OemToAnsi(LPCSTR lpcstr, LPSTR lpstr)
                     37:        { return ::OemToCharA(lpcstr, lpstr); }
                     38: 
                     39: #undef GetSysModalWindow
                     40: inline HWND GetSysModalWindow(void)
                     41:        { return NULL;}
                     42: 
                     43: #undef SetSysModalWindow
                     44: inline HWND SetSysModalWindow(HWND)
                     45:        { return NULL; }
                     46: 
                     47: #undef GetNextWindow
                     48: inline HWND GetNextWindow(HWND hWnd, UINT uFlag)
                     49:        { return ::GetWindow(hWnd, uFlag); }
                     50: 
                     51: #undef MessageBox
                     52: inline int MessageBox(HWND hWnd, LPCSTR lpText, LPCSTR lpTitle, UINT fuStyle)
                     53: #ifdef UNICODE
                     54:        { return ::MessageBoxExW(hWnd, lpText, lpTitle, fuStyle, 0); }
                     55: #else
                     56:        { return ::MessageBoxExA(hWnd, lpText, lpTitle, fuStyle, 0); }
                     57: #endif
                     58: 
                     59: #undef RegQueryValue
1.1.1.2 ! root       60: inline LONG RegQueryValue(HKEY hKey, LPCSTR lpSubKey,
1.1       root       61:        LPSTR lpValue, LONG FAR* lpcbValue )
                     62: #ifdef UNICODE
1.1.1.2 ! root       63:        { return ::RegQueryValueW(hKey, (LPWSTR)lpSubKey, lpValue,
1.1       root       64:                (LPDWORD)lpcbValue); }
                     65: #else
1.1.1.2 ! root       66:        { return ::RegQueryValueA(hKey, (LPSTR)lpSubKey, lpValue,
1.1       root       67:                (LPDWORD)lpcbValue); }
                     68: #endif // !UNICODE
                     69: 
                     70: #undef RegSetValue
1.1.1.2 ! root       71: inline LONG RegSetValue(HKEY hKey, LPCSTR lpSubKey, DWORD dwType,
1.1       root       72:        LPCSTR lpData, DWORD cbData )
                     73: #ifdef UNICODE
1.1.1.2 ! root       74:        { return ::RegSetValueW(hKey, (LPWSTR)lpSubKey, dwType,
1.1       root       75:                (LPSTR)lpData, cbData); }
                     76: #else
1.1.1.2 ! root       77:        { return ::RegSetValueA(hKey, (LPSTR)lpSubKey, dwType,
1.1       root       78:                (LPSTR)lpData, cbData); }
                     79: #endif // !UNICODE
                     80: 
1.1.1.2 ! root       81: /////////////////////////////////////////////////////////////////////////////

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.