Skip to content

Commit

Permalink
feat(win32-api): user32 SetParent()
Browse files Browse the repository at this point in the history
  • Loading branch information
waitingsong committed Jun 28, 2024
1 parent e10a643 commit 421b405
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/win32-api/src/lib/user32/dict/S.def.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@ export class DefUser32_S extends DefUser32_R {

/** https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-sendmessagetimeoutw */
static SendMessageTimeoutW = [D.LRESULT, [D.HWND, D.UINT, D.WPARAM, D.LPARAM, D.UINT, D.UINT, D.DWORD_PTR]]

static SetForegroundWindow = [D.BOOL, [D.HWND]]

/** https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setparent */
static SetParent = [D.HWND, [D.HWND, D.HWND]]

/** https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setwindowpos */
static SetWindowPos = [D.BOOL, [D.HWND, D.HWND, D.INT, D.INT, D.INT, D.INT, D.UINT]]

Expand Down
3 changes: 3 additions & 0 deletions packages/win32-api/src/lib/user32/dict/S.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ export class User32_S extends User32_R {
/** https://learn.microsoft.com/zh-cn/windows/win32/api/winuser/nf-winuser-setforegroundwindow */
SetForegroundWindow: (hWnd: T.HWND) => T.BOOL

/** https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setparent */
SetParent: (hWndChild: T.HWND, hWndNewParent: T.HWND) => T.HWND

/** https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setwindowpos */
SetWindowPos: (
hWnd: T.HWND,
Expand Down

0 comments on commit 421b405

Please sign in to comment.