IT/C++
[MFC] Radio Button 투명 배경
SpringUpOhWell!
2016. 11. 1. 19:18
반응형
오늘 Radio Button 의 배경을 투명하게 만들기 위해
WM_CTRLCOLOR 메시지를 이용하여 처리 하려고 했다. 그런데 바뀌지 않았다. ㅡㅡ;
왜 그런지 찾아보니 인터넷에 이런말이 있었다.
From comctrl6, if theme enabled you cannot change the text color of the text color of the radio button using the WM_CTRLCOLOR.
그래서 이것을 해결하기 위해
SetWindowTheme(GetDlgItem(IDC_CTRL)->m_hWnd, _T(""), _T(""));
를 사용하면 된다
HRESULT SetWindowTheme(
HWND hwnd,
LPCWSTR pszSubAppName,
LPCWSTR pszSubIdList);
When pszSubAppName and pszSubIdList are NULL, the theme manager removes the previously applied associations. You can prevent visual styles from being applied to a specified window by specifying an empty string, (L""), which does not match any section entries.
"이 포스팅은 쿠팡 파트너스 활동의 일환으로, 이에 따른 일정액의 수수료를 제공받습니다."
반응형