|
-
May 13th, 2007, 03:40 AM
#1
Visual Styles - Edit Control
Okay... I have embedded a manifest in my project:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
version="1.0.0.0"
processorArchitecture="X86"
name="Meh! Test"
type="win32"
/>
<description>Program Description</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
</assembly>
I have added as a resource:
CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "Meh! Test.exe.manifest"
I have called InitCommonControlsEx for every ICC_x there could be:
INITCOMMONCONTROLSEX iex;
iex.dwSize = sizeof(INITCOMMONCONTROLSEX);
iex.dwICC = ICC_LISTVIEW_CLASSES|ICC_TREEVIEW_CLASSES|ICC_BAR_CLASSES|ICC_TAB_CLASSES|ICC_UPDOWN_CLASS|
ICC_PROGRESS_CLASS|ICC_HOTKEY_CLASS|ICC_ANIMATE_CLASS|ICC_WIN95_CLASSES|ICC_DATE_CLASSES|
ICC_USEREX_CLASSES|ICC_COOL_CLASSES|ICC_INTERNET_CLASSES|ICC_PAGESCROLLER_CLASS|
ICC_NATIVEFNTCTL_CLASS;
InitCommonControlsEx(&iex);
InitCommonControls();
But I still have the normal edit control (nothing changes)... it just looks way out of place among all the nicely styled controls.
(All other common controls are styled correctly though)
Any help would be well apreciated...
PS: I am using Visual Studio C++ Express 2005 with Updates
PSS: Yes, I have included commctrl.h and 'commented in' comctl32.lib
Last edited by Mehzhor; May 13th, 2007 at 04:29 AM.
-
May 13th, 2007, 03:23 PM
#2
Re: Visual Styles - Edit Control
Can you show a screenshot? Is the edit actually a richedit?
-
May 14th, 2007, 01:04 AM
#3
Re: Visual Styles - Edit Control
Where is your Test.exe.manifest located? Is it in the working directory?
-
May 14th, 2007, 10:43 AM
#4
Re: Visual Styles - Edit Control
NOTE: for VS 2005, it is no longer sufficient to simply add a manifest file to the project. VS 2005 has changed the way themes are used. See this thread for more info.
Gort...Klaatu, Barada Nikto!
-
May 14th, 2007, 10:47 AM
#5
Re: Visual Styles - Edit Control
[ merged threads ]
Do not start multiple threads about the same problem.
-
May 14th, 2007, 02:04 PM
#6
Re: Visual Styles - Edit Control
This could be a wild guess, but looking at your code
Code:
CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "Meh! Test.exe.manifest"
perhaps the manifest compiler has a problem with the file name
Code:
Meh! Test.exe.manifest
It could be that the ! in the name is causing a problem, or even the space in the name.
Try renaming your manfiest file to simplyand see if that helps.
Good luck.
Be sure to rate those who help!
-------------------------------------------------------------
Karl - WK5M
PP-ASEL-IA (N43CS)
PGP Key: 0xDB02E193
PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193
-
May 14th, 2007, 08:02 PM
#7
Re: Visual Styles - Edit Control
Can you show a screenshot? Is the edit actually a richedit?
Not at the moment..
But I'll try and describe:
The (WC_EDIT or "EDIT") control shows up like a white box with no border.
The (WC_BUTTON or "BUTTON") control shows up like the button called 'Submit Reply' a bit below this box (at least while I am typing..)
Also the button control shows up like win95 WITHOUT the manifest... so I am doing something right... lol
Where is your Test.exe.manifest located? Is it in the working directory?
by 'working directory' do you mean where the rest of my .h or .cpp files are? Or where my .exe file is? I've tried both places...
NOTE: for VS 2005, it is no longer sufficient to simply add a manifest file to the project. VS 2005 has changed the way themes are used. See this thread for more info.
Well... I was happy when I saw your post.. thank you by the way.. yet it didnt work.. no difference. You see, I still have Visual Styles - XP themes on any other control I have tried placing. Just not the edit control (is there like an WS_EX style I need to set?)
PS: I am running on Windows Vista. Sorry for not telling you in my other post..
It could be that the ! in the name is causing a problem, or even the space in the name.
Try renaming your manfiest file to simply: [...]
Well.. good idea.. tried it though and it didnt work..
Some other things I tried were:
- Setting the font to Segoe UI (Vista's 'official' font)
- Changing project to unicode ( I changed it back now)
You see.. the edit control does 'change' when I use the manifest.
Without manifest (with the ES_PASSWORD style) char's show up: *
With Manifest (and same style) char's show up as black circles.
Thanks for trying to help guys/gals.
Any more suggestions?
-------------------------------------------------------------------------------------
YES!!! Figured it out... I KNEW it was someting stupid... lol
All it was is that I needed to put WS_EX_CLIENTEDGE as an extended style to turn on hot-tracking and that bluish border.. lol Well thanks for all the help!
Last edited by Mehzhor; May 14th, 2007 at 08:26 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|