Click here to Skip to main content
15,917,060 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Automatically close message box Pin
RaajaOfSelf20-Jan-05 9:37
RaajaOfSelf20-Jan-05 9:37 
QuestionHow do I insert a new line in a window? Pin
hugPW20-Jan-05 3:33
hugPW20-Jan-05 3:33 
AnswerRe: How do I insert a new line in a window? Pin
toxcct20-Jan-05 3:40
toxcct20-Jan-05 3:40 
GeneralRe: How do I insert a new line in a window? Pin
hugPW20-Jan-05 5:56
hugPW20-Jan-05 5:56 
GeneralTest Program in VC++....need HELP !!! Pin
kritharan20-Jan-05 3:23
kritharan20-Jan-05 3:23 
GeneralRe: Test Program in VC++....need HELP !!! Pin
toxcct20-Jan-05 3:39
toxcct20-Jan-05 3:39 
GeneralComboBox XP Style Pin
rashan20-Jan-05 3:11
rashan20-Jan-05 3:11 
GeneralRe: ComboBox XP Style Pin
Mr. Accident22-Jan-05 17:13
Mr. Accident22-Jan-05 17:13 
I'm not sure how you would do it in Windows 2000 except with an owner-draw control and a whole lot of work, but you can make your controls use the Windows XP common control styles when your program runs on Windows XP.

You can do this through the use of manifests to tell the program to use a certain version of the Windows common controls, when they are available.

Here's a manifest that will give your program XP-style controls when it runs under Windows XP:

<?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="App" type="win32" />
  <description>Application</description>
  <dependency>
    <dependentAssembly>
      <assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="x86" publicKeyToken="6595b64144ccf1df"  language="*"/>
    </dependentAssembly>
  </dependency>
</assembly>


To use this in your program, follow these steps:

1. Copy all the code above and paste into a text file. Name the text file "xpcontrols.manifest" or something like that. It doesn't really matter what the filename is.

2. Place the xpcontrols.manifest file in the resource directory of your Visual C++ 6.0 project.

3. In Visual C++ 6.0, import the xpcontrols.manifest file into your project as a resource. When it asks you what kind of resource it is, enter "24".

4. Change the resource's ID to "1".

That should do it!
GeneralDrawing for a pathfinding test program Pin
Serrrix20-Jan-05 2:49
Serrrix20-Jan-05 2:49 
QuestionWhere I can store my informations? Pin
pearlfromindiaaaa20-Jan-05 0:52
pearlfromindiaaaa20-Jan-05 0:52 
AnswerRe: Where I can store my informations? Pin
toxcct20-Jan-05 2:16
toxcct20-Jan-05 2:16 
GeneralRe: Where I can store my informations? Pin
Anonymous20-Jan-05 2:37
Anonymous20-Jan-05 2:37 
GeneralRe: Where I can store my informations? Pin
toxcct20-Jan-05 2:46
toxcct20-Jan-05 2:46 
AnswerRe: Where I can store my informations? Pin
Antony M Kancidrowski20-Jan-05 2:53
Antony M Kancidrowski20-Jan-05 2:53 
AnswerRe: Where I can store my informations? Pin
David Crow20-Jan-05 2:55
David Crow20-Jan-05 2:55 
AnswerRe: Where I can store my informations? Pin
Graham Bradshaw20-Jan-05 5:13
Graham Bradshaw20-Jan-05 5:13 
GeneralRe: Where I can store my informations? Pin
toxcct20-Jan-05 6:31
toxcct20-Jan-05 6:31 
GeneralRe: Where I can store my informations? Pin
Anonymous20-Jan-05 17:16
Anonymous20-Jan-05 17:16 
QuestionHow to open an old VC++ 6 project in Visual Studio .NET 2003? Pin
Rainer Koschnick20-Jan-05 0:49
Rainer Koschnick20-Jan-05 0:49 
AnswerRe: How to open an old VC++ 6 project in Visual Studio .NET 2003? Pin
Manfred Staiger20-Jan-05 1:21
Manfred Staiger20-Jan-05 1:21 
AnswerRe: How to open an old VC++ 6 project in Visual Studio .NET 2003? Pin
Mike Dimmick20-Jan-05 1:51
Mike Dimmick20-Jan-05 1:51 
QuestionHow to arrange toolbars side by side in row in Inplace Activation (VC++) App Pin
RajeevKANTA20-Jan-05 0:30
RajeevKANTA20-Jan-05 0:30 
Generalaccess violation on win2000 service pack 4 Pin
attias gabi19-Jan-05 21:35
attias gabi19-Jan-05 21:35 
Generalaccess violation on win2000 service pack 4 Pin
attias gabi19-Jan-05 21:35
attias gabi19-Jan-05 21:35 
GeneralRe: access violation on win2000 service pack 4 Pin
Neville Franks19-Jan-05 22:16
Neville Franks19-Jan-05 22:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.