Click here to Skip to main content
15,891,657 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I am creating a shell extension. In my property sheet dialog, I have a added a "SysLinK Control". But as soon I add this control my dialog doesn't come.

I tried programmatically create this control using
C++
HWND hwnd = CreateWindowEx(0, WC_LINK,L"Ajesh",
WS_VISIBLE | WS_CHILD | WS_TABSTOP,
7, 254, 178, 10,
m_hDlg, NULL, g_hInstRes, NULL);

But it fails with error code 1407 i.e Cannot find window class.

I also tried intialize common control using
C++
INITCOMMONCONTROLSEX iccex;
iccex.dwSize = sizeof(INITCOMMONCONTROLSEX);
iccex.dwICC = ICC_LINK_CLASS;
BOOL bret = InitCommonControlsEx(&iccex);

But it also fails to initialize for ICC_LINK_CLASS.

For Windows 10, Is there is any change "SysLinK Control" ? I cant find any documentation with any change information.

Thanks for the help
Posted
Updated 20-Sep-15 23:59pm
v2

1 solution

The WC_LINK class is defined in commctrl.h.
 
Share this answer
 
Comments
Ajesh Novell 21-Sep-15 8:08am    
I am not getting an compile time error...I am getting an runtime error, while executing my binaries in Windows 10.
Richard MacCutchan 21-Sep-15 8:50am    
I just tried it and it works fine.
timrprobocom 21-Sep-15 15:41pm    
Did you try it in Win 10? Because I also just tried it, and it fails for me as well. InitCommonControlEx fails.
Richard MacCutchan 22-Sep-15 4:21am    
Yes, of course I tried it in Windows 10; that was the whole point of your question.
timrprobocom 21-Sep-15 15:53pm    
This is a Windows 10 bug. The version of comctl32.dll that ships with Win 10 does not include support for either ICC_LINK_CLASS or ICC_SUPPORTED_CLASSES. Let's hope someone in the team notices this pretty quickly.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900