Skip to content

Commit

Permalink
Merge pull request #3935 from IllusionMan1212/win32-drag-n-drop
Browse files Browse the repository at this point in the history
core/sys/windows: added drag and drop procedures
  • Loading branch information
gingerBill committed Jul 16, 2024
2 parents 5520b45 + 07121f8 commit 0bb4cc6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions core/sys/windows/shell32.odin
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ foreign shell32 {
SHGetKnownFolderIDList :: proc(rfid: REFKNOWNFOLDERID, dwFlags: /* KNOWN_FOLDER_FLAG */ DWORD, hToken: HANDLE, ppidl: rawptr) -> HRESULT ---
SHSetKnownFolderPath :: proc(rfid: REFKNOWNFOLDERID, dwFlags: /* KNOWN_FOLDER_FLAG */ DWORD, hToken: HANDLE, pszPath: PCWSTR ) -> HRESULT ---
SHGetKnownFolderPath :: proc(rfid: REFKNOWNFOLDERID, dwFlags: /* KNOWN_FOLDER_FLAG */ DWORD, hToken: HANDLE, ppszPath: ^LPWSTR) -> HRESULT ---

DragAcceptFiles :: proc(hWnd: HWND, fAccept: BOOL) ---
DragQueryPoint :: proc(hDrop: HDROP, ppt: ^POINT) -> BOOL ---
DragQueryFileW :: proc(hDrop: HDROP, iFile: UINT, lpszFile: LPWSTR, cch: UINT) -> UINT ---
DragFinish :: proc(hDrop: HDROP) --- // @New
}

APPBARDATA :: struct {
Expand Down Expand Up @@ -67,6 +72,8 @@ ABE_BOTTOM :: 3
KNOWNFOLDERID :: GUID
REFKNOWNFOLDERID :: ^KNOWNFOLDERID

HDROP :: HANDLE

KNOWN_FOLDER_FLAG :: enum u32 {
DEFAULT = 0x00000000,

Expand Down

0 comments on commit 0bb4cc6

Please sign in to comment.