|
I'm having a heckuva time with XP themes. I have two apps, one a shell extension DLL and one a standalone EXE, and neither one is getting themed properly on the release build of XP, but they work fine on beta 2 (which is all I have to test with). On both I've put an XML manifest in the resources, as described in MSDN. Dropping a .manifest file in the same directory as the binary has no effect.
I'm stumped... has anyone had this same problem (and more importantly, fixed it)?
--Mike--
http://home.inreach.com/mdunn/
#include "witty_sig.h"
your with and
|
|
|
|
|
Did you put InitCommonControls(), or something like that, in the standard initialization?
-Matt Newman
-Matt Newman
|
|
|
|
|
I did, and #defined ISOLATION_AWARE_ENABLED as well... although would InitCommonControls() have any effect in a shell extension? I'd think Explorer would do that itself. ah well... I'll double-check my code to make sure.
--Mike--
http://home.inreach.com/mdunn/
#include "witty_sig.h"
your with and
|
|
|
|
|
-= Matt Newman =- wrote:
Did you put InitCommonControls(), or something like that, in the standard initialization
I went back and added InitCommonControls() before my calls to DoModal(), but the dialogs still don't get themed. I'm just puzzled why it partially works on beta 2, because I must've been doing something right.
Ah well, can you think of anything else?
--Mike--
http://home.inreach.com/mdunn/
#include "witty_sig.h"
your with and
|
|
|
|
|
InitCommonControls();
I put it there I am using VC6 SP4 on Windows XP Home Edition.
Are you using MFC?
Is the manifest a type "24" resource?
(Yeah I know stupid questions but I had to ask)
Other than that I am pretty much stumped.
-Matt Newman
-Matt Newman
|
|
|
|
|
No MFC, it's all ATL and WTL. The manifest is type 24, with ID 2 (MANIFEST_RESOURCE_ID).
Thanks for the ideas, Matt. I guess XP users will have to go without the cuuuuuute round buttons.
--Mike--
http://home.inreach.com/mdunn/
#include "witty_sig.h"
your with and
|
|
|
|
|
The resouce ID should be "1" (without quotes).
-Matt Newman
-Matt Newman
|
|
|
|
|
-= Matt Newman =- wrote:
The resouce ID should be "1" (without quotes).
It's 1 for EXEs, 2 for DLLs.
--Mike--
http://home.inreach.com/mdunn/
#include "witty_sig.h"
your with and
|
|
|
|
|
Hmm... Try 1 once. Other than that I am lost. You can just tell the users that the new theme is evil.
Matt Newman
|
|
|
|
|
howdy again all,
just wondering is there something i can call in MFC to bring up a dialog to let a user select a directory ? i was going to make someting myself but thought i would ask if there is something already in there.
also how do a catch the enter key being pressed ina CEdit ?
thanks for any help or pointers to the right direction
muz
|
|
|
|
|
1/ SHBrowseForFolder
2/ check Want Return/Multiline for the edit box
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
|
|
|
|
|
thanks for that, got the browsing working pretty quick, but i was asking how to make it do something when the user hits enter in the CEdit, not so its multiline, sorry for the confusion, again thanks in advance
muz
|
|
|
|
|
Then you still want to catch the return key, you want to override OnChange for the edit and check if the return key is down.
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
|
|
|
|
|
oh i get ya, but after looking through the msdn i'm still having trouble checking weather they press enter or not, any good articles here on cp or other around, done a quick search and couldn't find any,
thanks.
|
|
|
|
|
Hi All,
I've been splitting one of my MFC apps into two parts recently (Service & Visual). I've written the Service as a NT Console type application but wanted to use such things as CStrings & also the COleDispatch object.
To do this I've included afxwin.h, afxext.h, and afxdisp.h.
My question is: is there any reason I shouldn't be doing this or should I be looking at using something such as the CNTService class on this site? (Hopefully there is no reason as otherwise I'll have to rewrite my code )
Richard.
|
|
|
|
|
If you are using Visual C++ 6.0, you can create a console application that supports MFC. I would create a test application and see the differences between yours and the new.
Hope this helps.
|
|
|
|
|
Thanks Jonathan - have created many a console app and never noticed that option!
Richard.
|
|
|
|
|
This is a followup to a previous question, but how do I use the shell namespace functions to find out the currently mapped temp directory? I can't seem to find it in MSDN anywhere...
Thanks,
-jfaulken
|
|
|
|
|
|
I'm trying to find an easy way to get the drag and drop functionality that you find in the "Organize Favorites" dialog in IE -- to be able to drag a node and drop it between two other nodes so that it becomes their sibling instead of a child. Is this version of the control out there somewhere or will it have to be subclassed from the existing tree control? Or is it really easy and I'm just missing something?
Thanks for any advice.
Tom Nantais
Toronto
|
|
|
|
|
You have to handle the TVN_BEGINDRAG notification. You can handle the message in the parent dialog, --or-- create a specialized class derived from CTreeCtrl - in this case you'll also handle TVN_BEGINDRAG, but in the tree (using so-called message reflection).
Have a look at the 'Wicked Code' column in Aug'98 issue of MSJ - it presents the CDragDropTreeCtrl class. The article should be in your VC++ help - check the 'periodicals' section. If it's not there, go to msdn.microsoft.com, then MSDN Magazine and past issues.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
Tomasz,
Thank you very much. I'll look at the article.
Tom
|
|
|
|
|
How have to declare function in regular dll in purpose to match for another language as Delphi ???
Currently It declared in my VC dll so :
==============================================================
extern "C" __declspec(dllexport) BOOL func(int n)
{
return true;
}
===============================================================
and it performs illegal action in runinig from delphi program.
I tried to add : _stdcall so:
==============================================================
extern "C" __declspec(dllexport) BOOL _stdcall func(int n)
==============================================================
and the connection from delphi dont success at all.
Please help !!!
|
|
|
|
|
Try to fill .def file with exports.
|
|
|
|
|
Have you checked the expected size of the returned type in your Delphi declararion ?
The function you have written [ BOOL func(int n) ] takes a 32-bit value as a parameter, and returns a 32 bit value as a result - BOOL is a typedef for 'int', and therefore takes up 4 bytes, not 1 byte like 'bool'.
If this is not the problem, the first thing you need to do is determine whether the crash is on the way into tyour function, or on the way out. Add some 'tracing' code (MessageBox, perhaps) to your function as the first and the last lines of the function, and see if the crash happens before or after your function code. Or just use the debugger to watch the DLL! If it's on the way out, then the problem is probably the calling convention - the stack is not being cleared properly.
-----------------------------
"I leave no turn un-stoned." - John Simmons, Nov 6 2001
-----------------------------
|
|
|
|