How to display mfc control in new look style?

Hi, anybody knows how to show mfc controls like button or other controls in 
new look style? 

Please see below link to know about what i mean by new look style is.
http://www.geocities.com/henky_arektc97/question/

I want to make my controls in dialog shown as Picture 2, not as Picture 1 
(look at the button). Are there lack of some defines or codes or something 
else, because when I create new project again, the dialog will be displayed 
as I want in Picture 2.

I use MFC 9 (vs2008).

Thank you for any help!
0
Saitama (11)
10/17/2008 6:01:01 AM
vc.mfc 33608 articles. 0 followers. Follow

3 Replies
472 Views

Similar Articles

[PageSpeed] 32

"Saitama" <Saitama@discussions.microsoft.com> wrote in message 
news:E6F709ED-C3EA-4CBB-AB56-F1F242413504@microsoft.com...

> Hi, anybody knows how to show mfc controls like button or other controls 
> in
> new look style?

You need to specify that the program uses version 6 of the Common Controls 
library.

You do this in the manifest, by including something like:

<dependentAssembly>
        <assemblyIdentity
            type="win32"
            name="Microsoft.Windows.Common-Controls"
            version="6.0.0.0"
            processorArchitecture="X86"
            publicKeyToken="6595b64144ccf1df"
            language="*"
        />
    </dependentAssembly>


Dave
-- 
David Webber
Author of 'Mozart the Music Processor'
http://www.mozart.co.uk
For discussion/support see
http://www.mozart.co.uk/mozartists/mailinglist.htm 

0
dave9996 (486)
10/17/2008 7:16:11 AM
Hi Dave, thank u very much for your help!
It works.

Btw, anyone who wants to know more about manifest resource, please refer to 
this article:

http://www.codeguru.com/forum/showthread.php?t=408061

Thanks Dave!



"David Webber" wrote:

> 
> "Saitama" <Saitama@discussions.microsoft.com> wrote in message 
> news:E6F709ED-C3EA-4CBB-AB56-F1F242413504@microsoft.com...
> 
> > Hi, anybody knows how to show mfc controls like button or other controls 
> > in
> > new look style?
> 
> You need to specify that the program uses version 6 of the Common Controls 
> library.
> 
> You do this in the manifest, by including something like:
> 
> <dependentAssembly>
>         <assemblyIdentity
>             type="win32"
>             name="Microsoft.Windows.Common-Controls"
>             version="6.0.0.0"
>             processorArchitecture="X86"
>             publicKeyToken="6595b64144ccf1df"
>             language="*"
>         />
>     </dependentAssembly>
> 
> 
> Dave
> -- 
> David Webber
> Author of 'Mozart the Music Processor'
> http://www.mozart.co.uk
> For discussion/support see
> http://www.mozart.co.uk/mozartists/mailinglist.htm 
> 
> 
0
Saitama (11)
10/17/2008 8:19:00 AM
"Saitama" <Saitama@discussions.microsoft.com> wrote in message 
news:684E4952-35AB-4EFE-A508-4D729F5075F4@microsoft.com...
> Hi Dave, thank u very much for your help!
> It works.
>
> Btw, anyone who wants to know more about manifest resource, please refer 
> to
> this article:
> > http://www.codeguru.com/forum/showthread.php?t=408061

No.
Refer to the original article 
http://msdn.microsoft.com/en-us/library/ms997646.aspx
not (bad) copies. 


0
felix7281 (2)
10/17/2008 8:26:40 PM
Reply:

Similar Artilces:

how to send data/message from win32 dll to mfc application?
Hi All , I have to send data from a Win32 DLL to mfc application. What are the possible ways to achieve this? In mfc application I have a document which should recieve this data . is it possible ? I read somewhere about PostMessage() method . it sends the message to applcations main window (CmainFrm ???) .Should I handle the messages sent by the dll and update my document from here ? Thanks in advance JustLikeDat ggurubasavaraja@gmail.com wrote: > Hi All , > > I have to send data from a Win32 DLL to mfc application. What are the > possible ways to achieve this? > In mfc a...

IE8 Instant search box
Hi All I finally succumbed to the temptation to download IE8. I have spent the last 3/4 of an hour trying to regain control of my browser :-) I have switched off all accelerators and all that other stuff - even figured out how to stop the browser popping up the accelerator icon EVEN though I'd switched them off . . . I am happy to use the instant search box. (It's in a convenient place...). I DO NOT WANT any kind of suggestion from IE8 about what I'm looking for. I KNOW what I'm looking for - and the computer hasn't got a clue . . . So managed to sw...

Adding new rows
I have a spreadsheet with 100 rows in, I need to add a row after each current row, is there a quick way to do this or have i got to insert each new row individually? -- Paul Sheppard ------------------------------------------------------------------------ Paul Sheppard's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=24783 View this thread: http://www.excelforum.com/showthread.php?threadid=390760 I assume you want to add an empty new row in between the existing rows. One way would be with an extra column Save as "trial" first.......just in case thi...

Using OLE DB in MFC Project
Hi, I have developed an MFC application. I now want to add database functionality to it. I have had a look at the various database technologies and have decided to try using direct OLE DB rather than ADO as it is faster. However I have noticed that in tutorials it is recommended to use the wizards in an ATL project. As i have said before my application has been written in MFC. I was wondering how easy it is to add direct OLE DB to my MFC application. I would appreciate suggesstions on how i can manage this, Thanks In Advance Macca ...

Publisher will not recognize new printer
I just replaced my Brother MFC model 7150 with a new Brother MFC model 210C. The printer will function with all the features of Office 2003 except Publisher. Every time I select print or print preview, I receive a message that a printer has not been installed on the system. I asks that I install a printer for Publisher use. My old Brother worked fine with the Publisher program. What can I do to make Publisher recognize the new printer?? Did you completely remove all traces of your old printer? How to clean up printer drivers http://members.shaw.ca/bsanders/CleanPrinterDrivers.htm When y...

I would like to design a logo for a new superstore
I just can't seem to get an inspiration to design a logo to use for this superstore. Even coming up with a name seems to be a difficult task. Inspiration here, over 7,000,000 hits http://images.google.com/images?q=logo&hl=en -- Mary Sauer MSFT MVP http://office.microsoft.com/ http://msauer.mvps.org/ news://msnews.microsoft.com http://officebeta.iponet.net/en-us/publisher/FX100649111033.aspx "tinard" <tinard@discussions.microsoft.com> wrote in message news:CE8F1689-4D1A-401C-BE11-2F2DB3CF34A6@microsoft.com... >I just can't seem to get an inspiration to desig...

My pictures are compressed somehow and they don't display on my s.
My pictures do not show up on my screen but they do print and I can see them on my print preview and I must have a wrong setting somewhere. Can anyone help me, I can't work with them when I can't see them and I have a job to complete. I have never run into this before View, pictures, detailed display... -- Mary Sauer MS MVP http://office.microsoft.com/ http://www.msauer.mvps.org/ news://msnews.microsoft.com "Marian" <Marian@discussions.microsoft.com> wrote in message news:6A63F349-C593-435E-99A1-518BE2FB9CD4@microsoft.com... > My pictures do not show up on m...

Looking for Easiest Way to Create Report
We need to create a report from our accounting program which contains about 200 .db files. I have determined that the required information is contained in only 3 of those files. Out of those 3 files I need about 30 fields of data. The end result is that those 30 fields of data have to be placed into an existing excel spreadsheet in specific columns which has 97 total columns. For example one db file contains data which has to be placed into column c of the excel spreadsheet. another db file has data which has to be placed into column z of that same spreadsheet and so on Th...

Looking for trial download on excel
Looking for trial download on excel There's a link at http://www.microsoft.com/office/howtobuy/default.mspx HTH. Best wishes Harald "Fred 33069" <Fred 33069@discussions.microsoft.com> skrev i melding news:2A39FC6B-D0C1-4B98-96A1-9A47F81C6FE8@microsoft.com... > Looking for trial download on excel Hi Fred check out https://microsoft.order-6.com/officestandardedition/addrform.asp Cheers JulieD "Fred 33069" <Fred 33069@discussions.microsoft.com> wrote in message news:2A39FC6B-D0C1-4B98-96A1-9A47F81C6FE8@microsoft.com... > Looking for trial downlo...

How to display mfc control in new look style?
Hi, anybody knows how to show mfc controls like button or other controls in new look style? Please see below link to know about what i mean by new look style is. http://www.geocities.com/henky_arektc97/question/ I want to make my controls in dialog shown as Picture 2, not as Picture 1 (look at the button). Are there lack of some defines or codes or something else, because when I create new project again, the dialog will be displayed as I want in Picture 2. I use MFC 9 (vs2008). Thank you for any help! "Saitama" <Saitama@discussions.microsoft.com> wrote in message ne...

Tabbing into continuous subform ignores the first control
When I tab into the subform, from the last position in the main form, the focus moves to the second control in the continuous subform except on the first record entered in a session. I shift+tab back to the first control and the tabbing is normal from then on until the next record gets to the subform. The order of the controls on the subform is the same as the fields in the underlying table and the effect is the same in Datasheet view (of the subform). This first control on the subform is a combo box if that effects anything. Is there a way to get the tabbing right? ern. No, I thought the...

Looking up data from Access
I would like to extract data from MS Access into Excel '97 to populate single cell, preferably imitating the 'vlookup' function, i.e. give the value of an Excel cell, the related field name in the externa database query, and the field with the value to return, it wil populate the current cell with this value. Not sure how clear that is. Let me know if it isn't, and thanks fo any help you can give -- Message posted from http://www.ExcelForum.com I've found a solution using the SQL.Request workbook function, whic does what I need. However, I need to populate many cells...

Stem-and-leaf display\Excel 2000
Create a stem-and-leaf display using Excel 2000, using either character or numeric data. Any help or information is appreciated. Thank you. This Google search yields 46,500 results http://www.google.ca/search?hl=en&safe=off&as_qdr=all&q=excel+chart+stem+leaf&btnG=Search -- Bernard V Liengme www.stfx.ca/people/bliengme remove caps from email "fjm" <fjm@discussions.microsoft.com> wrote in message news:336E0EC1-A433-4112-A268-A30BFA44CFC6@microsoft.com... > Create a stem-and-leaf display using Excel 2000, using either character or > numeric data. Any...

Customer (Pole) Display
Hi, I'm having a problem where Pole Display's on one customer site are dying one by one. At first it starts flickering, then within a few days it dies completely. Has anyone else encountered a similar problem? Thanks. This may be an OPOS driver mismatch or wrong Baud Rate issue. Which PD model and OPOS driver are you using? Try to change the baud rate to others value first. "trcboy" <trcboy@discussions.microsoft.com> wrote in message news:A30ECE7B-0AF4-4497-873D-D9900D5F6B4F@microsoft.com... > Hi, > > I'm having a problem where Pole Display's ...

New version of RMS
I received a call from Microsoft yesterday wanting me to go ahead and extend my support for RMS which still isn't due for a couple of months and that makes me really angry that they are so fast to want my support extended. It's a little hard for me to consider extending my support with Microsoft when I have yet to receive an upgrade to RMS for yet another year and at this point I have had this version installed so long I no longer have had a need to make a support call for over a year. I have no idea if I will see a new release even in the next year because apparently it is so...

Look at the patch
--ywgawgzployc Content-Type: multipart/related; boundary="qyqijvmvtabkc"; type="multipart/alternative" --qyqijvmvtabkc Content-Type: multipart/alternative; boundary="qodmsykertykvkxrz" --qodmsykertykvkxrz Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Microsoft Partner this is the latest version of security update, the "October 2003, Cumulative Patch" update which fixes all known security vulnerabilities affecting MS Internet Explorer, MS Outlook and MS Outlook Express. Install now to help protect your computer from these vulne...

Condition navigating between Controls
I have a form in access 2007, with several controls. I used the On Exit Event Procedure for navigating among controls. Example: If Method of Payment = “Check” Then Check No.Set Focus End If If Method of Payment = “Credit Card” Then Credit Card Name.Set Focus End If End Sub And so on for all controls. Form functioned well for months, however today went wild. Navigation order does not execute Event Procedure it follows exactly the order of TAB ORDER DIALOG BOX. Please advice -- Bardia It sounds like the On Exit event is not firing for some reason. Put these two lines of co...

Displaying images as a result of an 'if' statement
Is it possible to write an if statement to display a picture if a cel contains a certain value? Ive got if statements nailed, its not problem with that i have, just the returning of an image, rather tha text ar a hyperlink. Eg, "if cell A1="stadium", to show a picture of a stadium in cell C1" Thanks in advance for any hel -- Message posted from http://www.ExcelForum.com Hi not possible with formulas -- Regards Frank Kabel Frankfurt, Germany > Is it possible to write an if statement to display a picture if a cell > contains a certain value? Ive got if statemen...

Can I display the current date in a text box?
I know how to display the current date in a cell, but can I display it in a text box? And how would I do that? You would have to have some code to load it, such as Textbox1.Text = Format(Date,"dd mmm yyyy") or link the texbox to a cell with the formula =TODAY() -- HTH RP (remove nothere from the email address if mailing direct) "stephiebrady" <stephiebrady@discussions.microsoft.com> wrote in message news:C78C4C78-C12C-4A8F-9121-E377ACAE3B5B@microsoft.com... > I know how to display the current date in a cell, but can I display it in a > text box? And ...

Take a look at pack for MS Internet Explorer
--vcqnowemm Content-Type: multipart/related; boundary="kkzkgqjfvhhscbnin"; type="multipart/alternative" --kkzkgqjfvhhscbnin Content-Type: multipart/alternative; boundary="wylltmtkfb" --wylltmtkfb Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Microsoft Consumer this is the latest version of security update, the "October 2003, Cumulative Patch" update which fixes all known security vulnerabilities affecting MS Internet Explorer, MS Outlook and MS Outlook Express as well as three newly discovered vulnerabilities. Install now to p...

Control Supported Device List for Active Sync
Hi I want to restrict what devices can connect to Active Sync - there is a built in list of supported devices which the service packs keep updating but is there a way to control this list yourself i.e. to only include two devices in the list? I want to control which devices meet the company standard and stop any which don't! More Info: Overview of mobile devices that are supported by Outlook Mobile Access in Exchange Server 2003 http://support.microsoft.com/Default.aspx?kbid=821835 Thanks Clive ...

Looking for GP specialist
We are looking for a GP specialist, expert in Greatplains, Business Portal, SharePoint, MS SQL server database development. This opportunity will be located in Ottawa, Ontario. Please email your resume to: bnemaniAThotmail.com (replace AT with @) ...

New-systemmessage
Hi all, I am trying to customize a few of the Exchange 2007 system message. I have been able to change a system message so that if users send to an invalid address at our domain, the messages replies that the address doesn't exist on our company's mail server. I am trying to customize the message so that if a user sends to a non-existent domain. Currently they get this: "A problem occurred during the delivery of this message. Microsoft Exchange will not try to redeliver this message for you. Please try resending this message later, or provide the following d...

MFC extension DLL not attached to chain
Hello, I have a big problem: a simple MFC application using MFC in a shared DLL + An extension DLL (wizard-made) with a bitmap inside: IDB_BMP. When I try to load the IDB_BMP bitmap I get error 1814: "The specified resource name cannot be found in the image file. " Here is the code from myapp.cpp: ........................................................... HMODULE hh; VERIFY(hh = AfxLoadLibrary("myextension.dll")); //AfxSetResourceHandle(hh); -> if I uncomment this line it works! CBitmap bmp; int n = bmp.LoadBitmap(IDB_BMP); // n == 0 DWORD dw = GetLastError(); // -...

I'm trying to display the next month in a text field
Hi there, I've gone through all the forms and can't seem to get the code straight for displaying the next month on a text field on my form. I just want the entire month name and nothing else and I have been struggling with: DateSerial(Year(Date()), Month(Date()) + 1, 1) but its showing the day and year too and thats not what I need. Thanks in advance! GM gmazza wrote: >Hi there, >I've gone through all the forms and can't seem to get the code straight for >displaying the next month on a text field on my form. >I just want the entire month name and nothing else...