winutil.h

Go to the documentation of this file.
00001 /**********************************************************************
00002  *<
00003     FILE: winutil.h
00004 
00005     DESCRIPTION: Misc. windows related functions
00006 
00007     CREATED BY: Rolf Berteig
00008 
00009     HISTORY: 1-6-95 file created
00010 
00011  *> Copyright (c) 1994-2003 All Rights Reserved.
00012  **********************************************************************/
00013 
00014 #pragma once
00015 
00016 #include "maxheap.h"
00017 #include <limits>
00018 #include <locale.h>
00019 #include "coreexp.h"
00020 #include <wtypes.h>
00021 #include <CommCtrl.h> // for HIMAGELIST
00022 #include "strclass.h"
00023 #include "ipoint2.h"
00024 #include "box2.h"
00025 
00026 CoreExport float GetWindowFloat(HWND hwnd,BOOL* valid = NULL);
00027 CoreExport int GetWindowInt(HWND hwnd,BOOL* valid = NULL);
00028 CoreExport BOOL SetWindowTextInt( HWND hwnd, int i );
00029 CoreExport BOOL SetWindowTextFloat( HWND hwnd, float f, int precision = 3 );
00030 CoreExport BOOL SetDlgItemFloat( HWND hwnd, int idControl, float val );
00031 CoreExport float GetDlgItemFloat( HWND hwnd, int idControl, BOOL* valid = NULL );
00032 CoreExport void SetDlgFont( HWND hDlg, HFONT hFont );
00033 CoreExport void SlideWindow( HWND hwnd, int x, int y );
00034 CoreExport void StretchWindow( HWND hwnd, int w, int h );
00035 CoreExport BOOL CenterWindow(HWND hWndChild, HWND hWndParent);
00036 CoreExport void GetClientRectP( HWND hwnd, Rect* rect );
00037 CoreExport void DrawIconButton( HDC hdc, HBITMAP hBitmap, Rect& wrect, Rect& brect, BOOL in );
00038 CoreExport int GetListHieght( HWND hList );
00039 CoreExport void ShadedVertLine( HDC hdc, int x, int y0, int y1, BOOL in );
00040 CoreExport void ShadedHorizLine( HDC hdc, int y, int x0, int x1, BOOL in );
00041 CoreExport void ShadedRect( HDC hdc, RECT& rect );
00042 CoreExport void Rect3D( HDC hdc, RECT& rect, BOOL in );
00043 CoreExport void WhiteRect3D( HDC hdc, RECT rect, BOOL in );
00044 CoreExport void DrawButton( HDC hdc, RECT rect, BOOL in );
00046 CoreExport void SetPathWithEllipses(HWND hwnd, const MCHAR* path, HFONT hFont);
00047 
00049 
00057 CoreExport int UpdateComboBoxDropDownWidth(HWND hComboBox, bool vScroll = true);
00058 
00059 
00061 
00078 CoreExport void XORDottedRect( HWND hwnd, IPoint2 p0, IPoint2 p1, int solidToRight = 0,
00079                                bool bErase = false, bool bDelayUpdate = false);
00081 
00098 CoreExport void XORDottedCircle( HWND hwnd, IPoint2 p0, IPoint2 p1, int solidToRight = 0,
00099                                  bool bErase = false, bool bDelayUpdate = false);
00101 
00116 CoreExport void XORDottedPolyline( HWND hwnd, int count, IPoint2 *pts, int solid = 0,
00117                                    bool bErase = false, bool bDelayUpdate = false);
00118 
00119 CoreExport void XORRect(HDC hdc, RECT& r, int border = 1);
00121 
00124 CoreExport BOOL IsVistaAeroEnabled();
00125 
00127 
00130 CoreExport BOOL IsThemeSupported();
00131 
00133 
00138 
00141 
00148 
00157 
00165 
00176 
00183 
00199 
00232 
00268 
00270 
00286 
00352 
00424 
00430 
00438 
00440 
00443 
00459 
00467 
00471 
00474 
00483 
00489 
00496 
00499 
00504 
00508 
00517 
00521 
00540 
00542 
00561 
00566