With C #, I could easily get the effect that I need:

However, I am having problems with the same as using the Win32 API in C. I don’t know how to create a window with no icon (in general), but still a title, a minimize button and a close button.
I registered my class correctly, but I cannot figure out what to do for window styles / advanced window styles.
static const TCHAR lpctszTitle[] = TEXT("Stuff"), lpctszClass[] =
TEXT("StuffClass");
HWND hWnd = CreateWindowEx(WS_EX_LAYERED | WS_EX_TOPMOST, lpctszClass,
lpctszTitle, WS_OVERLAPPED | WS_SYSMENU | WS_CAPTION | WS_MINIMIZEBOX,
CW_USEDEFAULT, 0, 250, 55, NULL, NULL, hThisInstance, NULL);
The above code:

which still has an icon in the title bar and is not what I wanted.
source
share