#include "windows.h" // Helper inline DWORD GetWindowStyle(const HWND hwnd) { return GetWindowLong(hwnd, GWL_STYLE); } inline BOOL IsPopUp(const HWND hwnd) { return GetWindowStyle(hwnd) & WS_POPUP; }
Programming Tips - Win32: check if a HWND is a popup window
Date: 2024nov21
OS: Windows
Language: C/C++
Q. Win32: check if a HWND is a popup window
A.