Click to See Complete Forum and Search --> : how to make CreateWindowEx "Edit" use the XP Style?


Emuman
November 30th, 2005, 01:21 AM
hWndEdit= CreateWindowEx( 0L, TEXT("Edit"), NULL, WS_CHILD | WS_BORDER | WS_VISIBLE,
0, 0, 50, 22, hwndParent, (HMENU) ID_TOOLBAR_EDIT, hInstance, 0 );

this will create a Edit with a black border, but on WinXP, it should be gray.
is there any way to set the style? thanks in advance.

UnfitElf
December 1st, 2005, 03:31 AM
Hi there,

you need to create a manifest file

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwxp/html/xptheming.asp

HTH