• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

ut_Win32OS.h

Go to the documentation of this file.
00001 /* AbiSource Program Utilities
00002  * Copyright (C) 1998 AbiSource, Inc.
00003  *
00004  * This program is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU General Public License
00006  * as published by the Free Software Foundation; either version 2
00007  * of the License, or (at your option) any later version.
00008  *
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software
00016  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00017  * 02110-1301 USA.
00018  */
00019 
00020 
00021 #ifndef UT_Win32OS_H
00022 #define UT_Win32OS_H
00023 
00024 #include <windows.h>
00025 #include "ut_types.h"
00026 #include <wchar.h>
00027 
00028 OSVERSIONINFOW& UT_GetWinVersion(void);
00029 bool UT_IsWinVista(void);
00030 bool UT_IsWinNT(void);
00031 bool UT_IsWin2K(void);
00032 bool UT_IsWin95(void);
00033 
00034 DLGTEMPLATE * WINAPI UT_LockDlgRes(HINSTANCE hinst, LPCWSTR lpszResName);
00035 
00036 wchar_t * UT_GetDefaultPrinterName();
00037 
00038 HDC  UT_GetDefaultPrinterDC();
00039 
00040 
00041 ATOM UT_RegisterClassEx(UINT style, WNDPROC wndproc, HINSTANCE hInstance,
00042                         HICON hIcon, HCURSOR hCursor, HBRUSH hbrBackground, HICON hIconSm,
00043                         const wchar_t * menu, const wchar_t * name);
00044 
00045 
00046 // NB: the default value for bForceANSI is intentionally set to true, otherwise the
00047 // tooltips do not work, see bug 8976
00048 HWND UT_CreateWindowEx(DWORD dwExStyle, const wchar_t* lpClassName, const wchar_t* lpWindowName, DWORD dwStyle,
00049                        int x, int y, int nWidth, int nHeight,
00050                        HWND hWndParent, HMENU hMenu, HINSTANCE hInstance, LPVOID lpParam);
00051 
00052 
00053 LRESULT UT_DefWindowProc(HWND hWnd, UINT Msg, WPARAM wParam,LPARAM lParam);
00054 BOOL UT_SetWindowText(HWND hWnd, const wchar_t * lpString);
00055 
00056 BOOL UT_GetMessage(LPMSG lpMsg,HWND hWnd,UINT wMsgFilterMin,UINT wMsgFilterMax);
00057 
00058 LRESULT UT_DispatchMessage(const MSG *lpmsg);
00059 #endif /* UT_Win32OS_H */

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1