However after Windows 10, this do not work any more.
What does not work anymore ?
For example, I had posted a test in this thread on Windows 10 with WS_EX_LAYERED for transparency, and it works normally
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I remember, I used CreatewindowsEx in order to change the borders or
apply any extended style to the window.
However after Windows 10, this do not work any more.
Is there a way to use those extended styles any more?
I using C++ on Visual studio 2022.
Thanks in advance.
However after Windows 10, this do not work any more.
What does not work anymore ?
For example, I had posted a test in this thread on Windows 10 with WS_EX_LAYERED for transparency, and it works normally
This is the code I use to used, and always responded perfectly, no matter what extended style.
I showing you the main parts.
( I had use this two too with no problem: WS_EX_CLIENTEDGE & WS_EX_DLGMODALFRAME )
WNDCLASSEX wcex;
wcex.cbSize = sizeof(WNDCLASSEX);
wcex.style = CS_HREDRAW | CS_VREDRAW;
wcex.lpfnWndProc = WndProc;
wcex.cbClsExtra = 0;
wcex.cbWndExtra = 0;
wcex.hInstance = hInstance;
wcex.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_APPLICATION));
wcex.hCursor = LoadCursor(NULL, IDC_ARROW);
wcex.hbrBackground = (HBRUSH)BLKBRS;
wcex.lpszMenuName = NULL;
wcex.lpszClassName = szAppName;
wcex.hIconSm = LoadIcon(wcex.hInstance, MAKEINTRESOURCE(IDI_APPLICATION));
return 1;
// Create the Window
hWndMain=CreateWindowEx(WS_EX_OVERLAPPEDWINDOW,szAppName,szAppName,WS_CAPTION|
WS_SYSMENU,(SCNWTH-WISZW)/2,(SCNHTH-WISZD)/2,WISZW,WISZD,NULL,NULL,hInstance,NULL);
Is there, I did not copy and paste, because you know have to be part of the code.
wndclass.cbSize = sizeof(WNDCLASSEX);
wndclass.style = CS_HREDRAW|CS_VREDRAW; // CS_DBLCLKS
wndclass.lpfnWndProc = MainWndProc;
wndclass.cbClsExtra = 0;
wndclass.cbWndExtra = 0;
wndclass.hInstance = hInstance;
wndclass.hCursor = LoadCursor(NULL, IDC_ARROW);
wndclass.hIcon = (HICON)LoadImage(hInst,"MICON",IMAGE_ICON,32,32,0);
wndclass.hIconSm = (HICON)LoadImage(hInst,"MICON",IMAGE_ICON,16,16,0);
wndclass.hbrBackground = CreateSolidBrush(RGB(255,255,255));
wndclass.lpszMenuName = "MMENU"; // Menu Name if Any
wndclass.lpszClassName = szAppName;
if(!RegisterClassEx(&wndclass)) return FALSE;
if(!(hWndMain=CreateWindowEx(WS_EX_OVERLAPPEDWINDOW,szAppName,szAppName,WS_CAPTION|
WS_SYSMENU,(SCNWTH-500)/2,(SCNHTH-368)/2,500,376,NULL,(HMENU)NULL,hInstance,NULL))
) return FALSE;
Well does not work here, all I get is the same flat window no matter what style I specify.
Like I said in the beginning, everything was working PERFECT in the beginning
however, after started using windows 10, that's when the problem started-up.
I wonder is the problem is on something like this, check this link.