03-08-2011 05:06 AM
I'm out of forum here as I generally program in Intel Visual Fortran. However I am having a problem with a C/C++ routine and wonder if any one has any experience or advice on this. My application uses dialogs and I am finding that as built the dialogs have the old or perhaps 'classic' windows style. To remedy this I've followed microsoft's advice by; creating a special manifest for my application copied directly from the example, adding it the source structure of my application, adding the CREATEPROCESS.... line to my resource file and making a call to initcommoncontrolsex at beginning of my application. In this call I have tried setting ICC_WIN95_CLASSES and there was no noticable change to the way the dialogs looked when I ran the application. I also tried ICC_STANDARD_CLASSES but this won't compile as this parameter is not defined. The other options seem to compile but don't appear relevent to my dialog issue. There seems plenty of people on the www who have had problems with this but I can't find a solution. I'd be really grateful for any help with this. Thanks, ACAR.
03-08-2011 08:07 AM
Well I'm not really sure how to get the dialogs to invoke in the correct style so I presume I need to set the initcommoncontrolex to something and as ICC_STANDARD_CLASSES seems to be the only option that has anything to do with my dialog buttons (the others are to do with list boxes, progress bars etc) I tried this. Do you know whether I'm on the right track or how I might get the modern style dialog buttons? Angus.
03-08-2011 09:49 AM
Jennifer, Thanks for your help. I downloaded the projecy you sent and found that I needed to upgrade my VS2008 with SP1 so that afxcontrolbars.h could be found. That took ages!! The project then compiled and I looked at the resulting window and buttons that appeared. They are as is happening with my application, i.e. they are the basic flat type with no mouse-over indication. However, I do find that when I replace ICC_WIN95_CLASSES with ICC_STANDARD_CLASSES it does compile so that issue is fixed. However this change made no difference to the dialog buttons which are still flat. Do you know how I might change the window style?