Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Win32 API check if current window is dialog or normal window

Tags:

c++

c

winapi

I'm dealing with win32 api subclass. My issue is I don't know my subclass procedure is running on a dialog or a "normal window". Can anyone tell me how can I determine current window is a dialog or a normal window?

like image 923
Bình Nguyên Avatar asked Sep 06 '25 01:09

Bình Nguyên


1 Answers

Check the name of the window class. There is no formal documented way of determining this other than that.

like image 141
Kirill Kobelev Avatar answered Sep 08 '25 15:09

Kirill Kobelev