Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
924 B

  1. ////////////////////////////////////////////////////////////////////////////////////////////////////
  2. // This is a collection of useful functions.
  3. //
  4. #ifndef __Global_h__
  5. #define __Global_h__
  6. // Display a message box to query the user if she is sure she wants to exit the wizard
  7. BOOL VerifyExitMessageBox(void);
  8. // Return a SIZE structure for the size that text will be in a window
  9. // A return value of SIZE( -1, -1 ) indicates an error
  10. SIZE GetTextSize( HWND hWnd, LPCTSTR sz );
  11. // Return a the height for the text will be in a window
  12. // A return value of -1 indicates an error
  13. int GetTextHeight( HWND hWnd, LPCTSTR sz );
  14. // Return a the width for the text will be in a window
  15. // A return value of -1 indicates an error
  16. int GetTextWidth( HWND hWnd, LPCTSTR sz );
  17. TCHAR *MakeCopyOfString( const TCHAR* sz );
  18. #endif // __Global_h__