#include <odin.h>
#include <odinwrap.h>
#include <os2sel.h>
#include <os2win.h>
#include <misc.h>
#include <string.h>
#include <stdio.h>
#include <win32wbase.h>
#include <win32wmdiclient.h>
#include <win32wdesktop.h>
#include "win32dlg.h"
#include <oslibwin.h>
#include <oslibgdi.h>
#include "user32.h"
#include "winicon.h"
#include "oslibmsg.h"
#include <win\winpos.h>
#include <win\win.h>
#include <heapstring.h>
#include <winuser32.h>
#include "hook.h"
#include "dbglocal.h"
Include dependency graph for window.cpp:
Go to the source code of this file.
Defines | |
#define | DBG_LOCALLOG DBG_window |
Functions | |
HWND WINAPI | CreateWindowExA (DWORD exStyle, LPCSTR className, LPCSTR windowName, DWORD style, INT x, INT y, INT width, INT height, HWND parent, HMENU menu, HINSTANCE instance, LPVOID data) |
HWND WINAPI | CreateWindowExW (DWORD exStyle, LPCWSTR className, LPCWSTR windowName, DWORD style, INT x, INT y, INT width, INT height, HWND parent, HMENU menu, HINSTANCE instance, LPVOID data) |
HWND WINAPI | CreateFakeWindowEx (HWND hwndOS2, ATOM classAtom) |
BOOL WINAPI | DestroyFakeWindow (HWND hwnd) |
BOOL WINAPI | DestroyWindow (HWND hwnd) |
HWND WINAPI | SetActiveWindow (HWND hwnd) |
HWND WIN32API | GetParent (HWND hwnd) |
HWND WINAPI | SetParent (HWND hwndChild, HWND hwndNewParent) |
BOOL WINAPI | IsChild (HWND hwndParent, HWND hwnd) |
HWND WINAPI | GetTopWindow (HWND hwnd) |
BOOL WINAPI | IsIconic (HWND hwnd) |
HWND WINAPI | GetWindow (HWND hwnd, UINT uCmd) |
BOOL WINAPI | EnableWindow (HWND hwnd, BOOL fEnable) |
BOOL WINAPI | BringWindowToTop (HWND hwnd) |
void WINAPI | SetInternalWindowPos (HWND hwnd, UINT showCmd, LPRECT lpRect, LPPOINT lpPoint) |
UINT WINAPI | GetInternalWindowPos (HWND hwnd, LPRECT rectWnd, LPPOINT ptIcon) |
HWND WINAPI | GetActiveWindow (void) |
BOOL WINAPI | ShowWindow (HWND hwnd, int nCmdShow) |
BOOL WINAPI | ShowWindowAsync (HWND hwnd, int nCmdShow) |
BOOL WINAPI | SetWindowPos (HWND hwnd, HWND hwndInsertAfter, int x, int y, int cx, int cy, UINT fuFlags) |
BOOL WINAPI | SetWindowPlacement (HWND hwnd, const WINDOWPLACEMENT *winpos) |
BOOL WINAPI | GetWindowPlacement (HWND hwnd, LPWINDOWPLACEMENT winpos) |
BOOL WIN32API | IsWindow (HWND hwnd) |
BOOL WINAPI | IsWindowEnabled (HWND hwnd) |
BOOL WIN32API | IsWindowVisible (HWND hwnd) |
HWND WINAPI | SetFocus (HWND hwnd) |
HWND WINAPI | GetFocus (void) |
BOOL WINAPI | IsZoomed (HWND hwnd) |
BOOL WINAPI | LockWindowUpdate (HWND hwnd) |
BOOL WINAPI | GetWindowRect (HWND hwnd, PRECT pRect) |
int WINAPI | GetWindowTextLengthA (HWND hwnd) |
int WIN32API | GetWindowTextA (HWND hwnd, LPSTR lpsz, int cch) |
int WIN32API | GetWindowTextLengthW (HWND hwnd) |
int WIN32API | GetWindowTextW (HWND hwnd, LPWSTR lpsz, int cch) |
BOOL WIN32API | SetWindowTextA (HWND hwnd, LPCSTR lpsz) |
BOOL WIN32API | SetWindowTextW (HWND hwnd, LPCWSTR lpsz) |
int WIN32API | InternalGetWindowText (HWND hwnd, LPWSTR lpString, INT nMaxCount) |
BOOL WIN32API | SetForegroundWindow (HWND hwnd) |
BOOL WIN32API | GetClientRect (HWND hwnd, PRECT pRect) |
BOOL WIN32API | AdjustWindowRect (PRECT rect, DWORD style, BOOL menu) |
BOOL WIN32API | AdjustWindowRectEx (PRECT rect, DWORD style, BOOL menu, DWORD exStyle) |
void | WINPOS_GetWinOffset (Win32BaseWindow *wndFrom, Win32BaseWindow *wndTo, POINT *offset) |
int WIN32API | MapWindowPoints (HWND hwndFrom, HWND hwndTo, LPPOINT lpPoints, UINT cPoints) |
BOOL WIN32API | ScreenToClient (HWND hwnd, LPPOINT pt) |
HWND WIN32API | GetDesktopWindow (void) |
HWND WIN32API | FindWindowA (LPCSTR lpszClass, LPCSTR lpszWindow) |
HWND WIN32API | FindWindowW (LPCWSTR lpClassName, LPCWSTR lpWindowName) |
HWND WIN32API | FindWindowExA (HWND hwndParent, HWND hwndChildAfter, LPCSTR lpszClass, LPCSTR lpszWindow) |
HWND WIN32API | FindWindowExW (HWND hwndParent, HWND hwndChildAfter, LPCWSTR lpszClass, LPCWSTR lpszWindow) |
BOOL WIN32API | FlashWindow (HWND hwnd, BOOL fFlash) |
BOOL WIN32API | MoveWindow (HWND hwnd, INT x, INT y, INT cx, INT cy, BOOL repaint) |
BOOL WIN32API | ClientToScreen (HWND hwnd, PPOINT pt) |
HDWP WIN32API | BeginDeferWindowPos (int count) |
HDWP WIN32API | DeferWindowPos (HDWP hdwp, HWND hwnd, HWND hwndAfter, INT x, INT y, INT cx, INT cy, UINT flags) |
BOOL WIN32API | EndDeferWindowPos (HDWP hdwp) |
HWND WIN32API | ChildWindowFromPoint (HWND hwnd, POINT pt) |
HWND WIN32API | ChildWindowFromPointEx (HWND hwndParent, POINT pt, UINT uFlags) |
BOOL WIN32API | CloseWindow (HWND hwnd) |
BOOL | IsPointInWindow (HWND hwnd, POINT point) |
HWND WIN32API | WindowFromPoint (POINT point) |
BOOL WIN32API | IsWindowUnicode (HWND hwnd) |
DWORD WINAPI | SwitchToThisWindow (HWND hwnd, BOOL restore) |
BOOL WIN32API | EnumThreadWindows (DWORD dwThreadId, WNDENUMPROC lpfn, LPARAM lParam) |
BOOL WIN32API | EnumChildWindows (HWND hwnd, WNDENUMPROC lpfn, LPARAM lParam) |
BOOL WIN32API | EnumWindows (WNDENUMPROC lpfn, LPARAM lParam) |
UINT WIN32API | ArrangeIconicWindows (HWND parent) |
BOOL WIN32API | OpenIcon (HWND hwnd) |
BOOL WINAPI | ShowOwnedPopups (HWND hwndOwner, BOOL fShow) |
HWND WINAPI | GetForegroundWindow (void) |
HWND WINAPI | GetLastActivePopup (HWND hWnd) |
DWORD WINAPI | GetWindowThreadProcessId (HWND hWnd, PDWORD lpdwProcessId) |
DWORD WINAPI | GetWindowContextHelpId (HWND hwnd) |
BOOL WINAPI | SetWindowContextHelpId (HWND hwnd, DWORD dwContextHelpId) |
HANDLE WINAPI | GetPropA (HWND hwnd, LPCSTR str) |
HANDLE WINAPI | GetPropW (HWND hwnd, LPCWSTR str) |
BOOL WINAPI | SetPropA (HWND hwnd, LPCSTR str, HANDLE handle) |
BOOL WINAPI | SetPropW (HWND hwnd, LPCWSTR str, HANDLE handle) |
HANDLE WINAPI | RemovePropA (HWND hwnd, LPCSTR str) |
HANDLE WINAPI | RemovePropW (HWND hwnd, LPCWSTR str) |
INT WINAPI | EnumPropsA (HWND hwnd, PROPENUMPROCA func) |
INT WINAPI | EnumPropsW (HWND hwnd, PROPENUMPROCW func) |
INT WINAPI | EnumPropsExA (HWND hwnd, PROPENUMPROCEXA func, LPARAM lParam) |
INT WINAPI | EnumPropsExW (HWND hwnd, PROPENUMPROCEXW func, LPARAM lParam) |
BOOL WINAPI | AnyPopup (void) |
|
Definition at line 46 of file window.cpp. |
|
Definition at line 66 of file window.cpp. Referenced by COMBO_Create(), GET_SHORT(), ICONTITLE_Create(), Win32MDIChildWindow::Win32MDIChildWindow(), and Win32MDIClientWindow::Win32MDIClientWindow().
|
|
Definition at line 171 of file window.cpp. |
|
Definition at line 266 of file window.cpp. |
|
Definition at line 287 of file window.cpp. |
|
Definition at line 303 of file window.cpp. Referenced by COMBO_NCDestroy(), DestroyMenu(), MDIDestroyChild(), MENU_HideSubPopups(), and MENU_TrackMenu().
|
|
Definition at line 321 of file window.cpp. Referenced by IconTitleWndProc(), and Win32WindowProc().
|
|
Definition at line 348 of file window.cpp. Referenced by BUTTON_CheckAutoRadioButton(), BUTTON_SendNotify(), CB_Paint(), COMBO_HandleItem(), DIALOG_FindMsgDestination(), DIALOG_GetNextTabItem(), DIALOG_IsAccelerator(), DefMDIChildProcA(), DefMDIChildProcW(), EDIT_CheckCombo(), EDIT_WM_KeyDown(), EditWndProc(), GetControlBrush(), GetNextDlgGroupItem(), IsWindowVisible(), LISTBOX_Create(), MDIClientWndProc_common(), MDIDestroyChild(), MDIRefreshMenu(), MDISetMenu(), MDI_ChildActivate(), MDI_GetWindow(), MENU_TrackKbdMenuBar(), OB_Paint(), SCROLL_DrawInterior(), SCROLL_HandleScrollEvent(), SCROLL_KeyDown(), STATIC_Click(), STATIC_DoubleClick(), STATIC_Enable(), STATIC_PaintBitmapfn(), STATIC_PaintIconfn(), STATIC_PaintMetafilefn(), STATIC_PaintOwnerDrawfn(), STATIC_PaintTextfn(), ScrollBarWndProc(), UpdateWindow(), WINPOS_FindIconPos(), and WindowFromPoint().
|
|
Definition at line 368 of file window.cpp. Referenced by COMBO_Create().
|
|
Definition at line 399 of file window.cpp. Referenced by DIALOG_GetNextTabItem(), IsDialogMessageA(), and IsDialogMessageW().
|
|
Definition at line 418 of file window.cpp. |
|
Definition at line 443 of file window.cpp. Referenced by ArrangeIconicWindows(), DefFrameProcW(), FrameTrackFrame(), KBD_translate_accelerator(), MDICascade(), MDIClientWndProc_common(), MDICreateChild(), MDITile(), MENU_TrackMouseMenuBar(), MonitorFromWindow(), and OpenIcon().
|
|
Definition at line 463 of file window.cpp. Referenced by ArrangeIconicWindows(), ChildWindowFromPointEx(), DIALOG_GetNextTabItem(), DIALOG_IsAccelerator(), GetNextDlgGroupItem(), MDICascade(), MDITile(), MDI_GetWindow(), MENU_DrawMenuBar(), ScrollWindowEx(), ShowOwnedPopups(), WINPOS_FindIconPos(), and WindowFromPoint().
|
|
Definition at line 482 of file window.cpp. Referenced by CBDropDown(), COMBO_Enable(), and MENU_ShowPopup().
|
|
Definition at line 501 of file window.cpp. |
|
Definition at line 513 of file window.cpp. |
|
Definition at line 544 of file window.cpp. |
|
Definition at line 558 of file window.cpp. Referenced by IconTitleWndProc(), MDI_ChildActivate(), and Win32MDIChildWindow::createChild().
|
|
Definition at line 566 of file window.cpp. Referenced by CBResetPos(), CBRollUp(), DefMDIChildProcW(), MDIClientWndProc_common(), MDICreateChild(), MDIDestroyChild(), MDI_ChildActivate(), MSGBOX_OnInit(), OpenIcon(), ShowScrollBar(), ShowWindowAsync(), SwitchToThisWindow(), Win32FrameWindowProc(), and Win32MDIChildWindow::createChild().
|
|
Definition at line 597 of file window.cpp. |
|
Definition at line 614 of file window.cpp. Referenced by ArrangeIconicWindows(), BringWindowToTop(), CBDropDown(), CBForceDummyResize(), CBResetPos(), DrawMenuBar(), EnableMenuItem(), EndDeferWindowPos(), IconTitleWndProc(), LISTBOX_UpdateSize(), MDICascade(), MDIClientWndProc_common(), MDITile(), MDI_ChildActivate(), MDI_SwitchActiveChild(), MDI_UpdateFrameText(), MENU_ShowPopup(), MSGBOX_OnInit(), MoveWindow(), STATIC_ResizeWindow(), SetForegroundWindow(), SetMenu(), ShowScrollBar(), and Win32MDIChildWindow::createChild().
|
|
Definition at line 639 of file window.cpp. Referenced by SetInternalWindowPos().
|
|
Definition at line 665 of file window.cpp. Referenced by GetInternalWindowPos(), MonitorFromWindow(), and SetInternalWindowPos().
|
|
Definition at line 687 of file window.cpp. Referenced by CBRollUp(), COMBO_EditKillFocus(), COMBO_LButtonDown(), CallWindowProcA(), CallWindowProcW(), ClientToScreen(), DeferWindowPos(), GetLastActivePopup(), GetNextDlgGroupItem(), GetNextDlgTabItem(), GetSystemMenu(), IsWindowEnabled(), IsWindowVisible(), MDIClientWndProcW(), MDIClientWndProc_common(), MDICreateChild(), MENU_DoNextMenu(), MENU_MouseMove(), MENU_ShowPopup(), MENU_TrackMenu(), ScreenToClient(), SetFocus(), SetInternalWindowPos(), SetParent(), ShowScrollBar(), TIMER_KillTimerFromWindow(), TranslateAcceleratorA(), and Win32WindowProc().
|
|
Definition at line 705 of file window.cpp. Referenced by BUTTON_DrawPushButton(), CB_Paint(), ChildWindowFromPointEx(), KBD_translate_accelerator(), MDITile(), MDI_ChildActivate(), OS2ToWinMsgTranslate(), STATIC_PaintTextfn(), TranslateMDISysAccel(), and UB_Paint().
|
|
Definition at line 723 of file window.cpp. Referenced by ChildWindowFromPointEx(), EDIT_Refresh(), GetScrollBarInfo(), LISTBOX_RepaintItem(), MDICascade(), MDICreateChild(), MDITile(), ShowOwnedPopups(), and UpdateWindow().
|
|
Definition at line 769 of file window.cpp. Referenced by BUTTON_LButtonDown(), COMBO_LButtonDown(), DefFrameProcW(), EDIT_WM_LButtonDown(), LISTBOX_HandleLButtonDown(), MDIClientWndProc_common(), MDI_ChildActivate(), MSGBOX_OnInit(), and SCROLL_HandleScrollEvent().
|
|
Definition at line 833 of file window.cpp. Referenced by DIALOG_IsDialogMessage(), and MDI_ChildActivate().
|
|
Definition at line 860 of file window.cpp. |
|
Definition at line 872 of file window.cpp. |
|
Definition at line 880 of file window.cpp. Referenced by CBCalcPlacement(), CBDropDown(), CBForceDummyResize(), CBGetDroppedControlRect(), ChildWindowFromPointEx(), IsPointInWindow(), LISTBOX_HandleLButtonDownCombo(), LISTBOX_UpdateSize(), MENU_FindItemByCoords(), MENU_ShowSubPopup(), MSGBOX_OnInit(), MonitorFromWindow(), and STATIC_ResizeWindow().
|
|
Definition at line 914 of file window.cpp. Referenced by BUTTON_DrawPushButton(), CB_Paint(), GB_Paint(), and STATIC_PaintTextfn().
|
|
Definition at line 931 of file window.cpp. Referenced by BUTTON_DrawPushButton(), CBUpdateLBox(), CB_Paint(), DrawCaptionTemp(), GB_Paint(), MSGBOX_OnInit(), and STATIC_PaintTextfn().
|
|
Definition at line 949 of file window.cpp. |
|
Definition at line 966 of file window.cpp. Referenced by DIALOG_IsAccelerator(), InternalGetWindowText(), MDI_MenuDeleteItem(), MDI_MenuModifyItem(), MDI_MoreWindowsDlgProc(), and MDI_UpdateFrameText().
|
|
Definition at line 983 of file window.cpp. Referenced by CBPaintText(), and MSGBOX_OnInit().
|
|
Definition at line 1000 of file window.cpp. |
|
Definition at line 1018 of file window.cpp. |
|
Definition at line 1032 of file window.cpp. |
|
|
Definition at line 1063 of file window.cpp. |
|
Definition at line 1070 of file window.cpp. Referenced by AdjustWindowRect(), GET_SHORT(), MDIClientWndProc_common(), MDI_ChildGetMinMaxInfo(), and Win32MDIChildWindow::childGetMinMaxInfo().
|
|
Definition at line 1137 of file window.cpp. Referenced by MapWindowPoints().
|
|
Definition at line 1170 of file window.cpp. Referenced by COMBO_MouseMove(), ClientToScreen(), GetMenuItemRect(), GetWindowRect(), MSGBOX_OnInit(), OS2ToWinMsgTranslate(), and ScreenToClient().
|
|
Definition at line 1228 of file window.cpp. Referenced by SCROLL_HandleScrollEvent().
|
|
Definition at line 1251 of file window.cpp. Referenced by CBDropDown(), DeferWindowPos(), GetDC(), GetWindowDC(), SetParent(), SetSysColors(), and ShowOwnedPopups().
|
|
Definition at line 1259 of file window.cpp. Referenced by WinHelpA().
|
|
Definition at line 1265 of file window.cpp. |
|
Definition at line 1271 of file window.cpp. Referenced by FindWindowA().
|
|
Definition at line 1306 of file window.cpp. Referenced by FindWindowW().
|
|
Definition at line 1332 of file window.cpp. |
|
Definition at line 1340 of file window.cpp. Referenced by DefFrameProcW(), MDIClientWndProc_common(), and SCROLL_Create().
|
|
Definition at line 1352 of file window.cpp. Referenced by COMBO_Create(), ChildWindowFromPointEx(), GET_SHORT(), and LISTBOX_HandleLButtonDownCombo().
|
|
Definition at line 1375 of file window.cpp. |
|
Definition at line 1408 of file window.cpp. |
|
Definition at line 1508 of file window.cpp. |
|
Definition at line 1536 of file window.cpp. Referenced by MDIClientWndProc_common().
|
|
Definition at line 1553 of file window.cpp. Referenced by ChildWindowFromPoint().
|
|
Definition at line 1608 of file window.cpp. |
|
Definition at line 1625 of file window.cpp. Referenced by WindowFromPoint().
|
|
Definition at line 1661 of file window.cpp. Referenced by OS2ToWinMsgTranslate().
|
|
Definition at line 1703 of file window.cpp. |
|
Definition at line 1720 of file window.cpp. |
|
Definition at line 1726 of file window.cpp. |
|
Definition at line 1732 of file window.cpp. |
|
Definition at line 1756 of file window.cpp. |
|
Definition at line 1762 of file window.cpp. Referenced by MDICascade(), MDIClientWndProc_common(), and MDITile().
|
|
Definition at line 1807 of file window.cpp. |
|
Definition at line 1823 of file window.cpp. |
|
Definition at line 1877 of file window.cpp. Referenced by SendInput().
|
|
Definition at line 1897 of file window.cpp. |
|
Definition at line 1921 of file window.cpp. |
|
Definition at line 1929 of file window.cpp. |
|
Definition at line 1948 of file window.cpp. |
|
Definition at line 1967 of file window.cpp. Referenced by DBG_LOCALLOG().
|
|
Definition at line 1985 of file window.cpp. |
|
Definition at line 2014 of file window.cpp. Referenced by SetPropW().
|
|
Definition at line 2033 of file window.cpp. |
|
Definition at line 2049 of file window.cpp. Referenced by RemovePropW().
|
|
Definition at line 2067 of file window.cpp. |
|
Definition at line 2083 of file window.cpp. |
|
Definition at line 2091 of file window.cpp. |
|
Definition at line 2100 of file window.cpp. Referenced by EnumPropsA().
|
|
Definition at line 2119 of file window.cpp. Referenced by EnumPropsW().
|
|
Definition at line 2154 of file window.cpp. |