Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Dec 9th, 2005, 4:29 PM   #11
ivan
Professional Programmer
 
ivan's Avatar
 
Join Date: Sep 2005
Location: serbia & montenegro
Posts: 484
Rep Power: 3 ivan is on a distinguished road
In Dev-C++ all you need to do is to include <windows.h> header, link with libcomctrl32.a and call InitCommonControls().
ivan is offline   Reply With Quote
Old Dec 9th, 2005, 5:53 PM   #12
Kilo
Expert Programmer
 
Kilo's Avatar
 
Join Date: Nov 2005
Location: In Pink Clam?
Posts: 542
Rep Power: 0 Kilo is an unknown quantity at this point
Send a message via AIM to Kilo
i included that dll file, but when i attempt to call that function it bombs.
__________________
"When in Rome, Do as the Romans Do"
"Beauty is in the eye of the BEER holder"
"Save your breath your going to need it for your blow up doll later"

SearchLores.org
Kilo is offline   Reply With Quote
Old Dec 9th, 2005, 6:11 PM   #13
Dameon
Troll
 
Dameon's Avatar
 
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4 Dameon is on a distinguished road
Is that still needed in 1.1 and 2.0?

static void Main() {
    Application.EnableVisualStyles();
    Application.Run(new Form1());
}

The flatstyle on each control also needs to be set to FlatStyle.System

http://msdn.microsoft.com/msdnmag/is...efault.aspx#S3
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270
Dameon is offline   Reply With Quote
Old Dec 9th, 2005, 6:32 PM   #14
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Worked fine for me in Visual C# 2003 without even calling that function.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Dec 9th, 2005, 8:12 PM   #15
Dameon
Troll
 
Dameon's Avatar
 
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4 Dameon is on a distinguished road
With or without a manifest?
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270
Dameon is offline   Reply With Quote
Old Dec 10th, 2005, 4:41 AM   #16
ivan
Professional Programmer
 
ivan's Avatar
 
Join Date: Sep 2005
Location: serbia & montenegro
Posts: 484
Rep Power: 3 ivan is on a distinguished road
Quote:
Originally Posted by Kilo
i included that dll file, but when i attempt to call that function it bombs.
Are you sure you linked with the library? Or maybe you need to update comctrl32.dll?
ivan is offline   Reply With Quote
Old Dec 10th, 2005, 4:57 PM   #17
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Dameon, that's what I meant - a manifest file seems to work fine for me with all apps, actually, without calling some weird functions.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Dec 12th, 2005, 9:58 AM   #18
Kilo
Expert Programmer
 
Kilo's Avatar
 
Join Date: Nov 2005
Location: In Pink Clam?
Posts: 542
Rep Power: 0 Kilo is an unknown quantity at this point
Send a message via AIM to Kilo
im not really looking for the 'flat button' style. how would i go about useing XP style buttons? (with a manifest)
__________________
"When in Rome, Do as the Romans Do"
"Beauty is in the eye of the BEER holder"
"Save your breath your going to need it for your blow up doll later"

SearchLores.org
Kilo is offline   Reply With Quote
Old Dec 12th, 2005, 4:18 PM   #19
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
You need to set the "FlatButton" property to System. Just do it. :p
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Dec 12th, 2005, 6:20 PM   #20
Kilo
Expert Programmer
 
Kilo's Avatar
 
Join Date: Nov 2005
Location: In Pink Clam?
Posts: 542
Rep Power: 0 Kilo is an unknown quantity at this point
Send a message via AIM to Kilo
awww, my computer at work magically caught a virus over the weekend so that formatted my comp. Grrr, I have no VS .NET CD's and it could be days before i can get someone to bring them back in for me to use. Everyone feel my pain
__________________
"When in Rome, Do as the Romans Do"
"Beauty is in the eye of the BEER holder"
"Save your breath your going to need it for your blow up doll later"

SearchLores.org
Kilo is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:50 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC