April 1, 2008
Articles, Dani Vainstein, QTips, Windows
0
The IsIconic function determines whether the specified window is minimized (iconic). API Syntax : BOOL IsIconic( HWND hWnd ); Parameters : hWnd 8211; [in] Handle to the window to test. Return Value : If the window is iconic, the return value is nonzero. If the window is not iconic, the return value is zero. Extern.Declare
Read More
April 1, 2008
Articles, Dani Vainstein, QTips, Windows
0
The IsZoomed function determines whether a window is maximized. API Syntax : BOOL IsZoomed( HWND hWnd ); Parameters : hWnd 8211; [in] Handle to the window to test. Return Value : If the window is zoomed, the return value is nonzero. If the window is not zoomed, the return value is zero. Extern.Declare micInteger, "IsZoomed",
Read More
April 1, 2008
Articles, Dani Vainstein, QTips, Windows
0
The FindWindow function retrieves a handle to the top-level window whose class name and window name match the specified strings. This function does not search child windows. This function does not perform a case-sensitive search. API syntax : HWND FindWindow( LPCTSTR lpClassName, LPCTSTR lpWindowName ); Parameters : lpClassName 8211; [in] string that specifies the class
Read More
April 1, 2008
Articles, Dani Vainstein, QTips, Windows
0
The EndTask function is called to forcibly close a specified window. API syntax : BOOL EndTask( HWND hWnd, BOOL fShutDown, BOOL fForce ); Parameters : hWnd 8211; [in] Handle to the window to be closed. fShutDown 8211; [in] Ignored. Must be FALSE. fForce 8211; [in] A TRUE for this parameter will force the destruction of
Read More
April 1, 2008
Articles, Dani Vainstein, QTips, Windows
0
The CloseWindow function minimizes (but does not destroy) the specified window. API syntax : BOOL CloseWindow( HWND hWnd ); Parameters : hWnd 8211; [in] Handle to the window to be minimized. Return Value : If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. Extern.Declare micInteger, "CloseWindow",
Read More
April 1, 2008
Articles, Dani Vainstein, Files, QTips
0
API Syntax : DWORD GetPrivateProfileSectionNames( LPCTSTR lpszReturnBuffer, DWORD nSize, LPCTSTR lpFileName ); Parameters : lpszReturnBuffer 8211; [out] buffer that receives the section names associated with the named file. The buffer is filled with one or more null-terminated strings; the last string is followed by a second null character nSize 8211; [in] The size of the
Read More
April 1, 2008
Articles, Dani Vainstein, Files, QTips
0
The GetPrivateProfileString function Retrieves a string from the specified section in an initialization file. API Syntax : DWORD GetPrivateProfileString( LPCTSTR lpAppName, LPCTSTR lpKeyName, LPCTSTR lpDefault, LPTSTR lpReturnedString, DWORD nSize, LPCTSTR lpFileName ); Parameters : lpAppName 8211; [in] The name of the section containing the key name. If this parameter is Null, the GetPrivateProfileString function copies
Read More
April 1, 2008
Articles, Dani Vainstein, QTips, Windows
0
The SwitchToThisWindow function is called to switch focus to a specified window and bring it to the foreground. API Syntax : VOID SwitchToThisWindow( HWND hWnd, BOOL fAltTab ); Parameters : hwnd 8211; Handle to the window being switched to. fAltTab 8211; A TRUE for this parameter indicates that the window is being switched to using
Read More
April 1, 2008
Articles, Dani Vainstein, QTips, Windows
0
Sometimes applications display reports, when the window title depends on server, ip, date an time, report type etc. you can8217;t predict what will be the window title, only during runtime. I met this issue when an application display several reports types after selecting a menu item. my task is to verify that the window was
Read More