winapi - Enabling visual styles with C++ Win32 API? -
according msdn article, visual styles supposed applied win32 applications default. however, ui elements appeared windows classic until inserted header:
#pragma comment(linker,"\"/manifestdependency:type='win32' \ name='microsoft.windows.common-controls' version='6.0.0.0' \ processorarchitecture='*' publickeytoken='6595b64144ccf1df' language='*'\"")
now, when try add button using call:
createwindow(l"button", l"quit", ws_visible | ws_child, 120, 50, 80, 25, hwnd, null, hinst, null);
the result looks this:
that looks windows 8 button windows classic font. missing apply full windows 8 visual style?
the button themed, did not set font button. because of that, button has default font.
Comments
Post a Comment