Re: How to enable visual styles in BHO
- From: "Igor Tandetnik" <itandetnik@xxxxxxxx>
- Date: Fri, 26 Aug 2005 09:33:07 -0400
Seb <kipcool.sb@xxxxxxxxx> wrote:
> One query, what is the difference between the rc file and the rc2 file
> ?
None really. Just a naming convention. The IDE manages the .rc file for
you, inserting and removing pieces as you work in resource editors, so
it is somewhat difficult to put handwritten code in there. So when one
needs to, it is customary to create a .rc2 file, put any custom code
there, and #include it in .rc . The IDE does not touch .rc2.
By the way, to include anything in .rc and make sure it stays put, do
the following. In the IDE, open Resource Viewer, right-click on
ProjectName.rc node and choose Resource Includes. A dialog appears with
two large edit boxes. Whatever you put in the top box will appear at the
beginning of your .rc file. It usually already contains #include
"winres.h" line - put any additional headers there. The contents of the
bottom box will be placed at the end of .rc file. You can specify some
resource statements there directly (e.g. the one-liner that includes the
manifest) or you can #include "your.rc2" if you have a lot of custom
resource code that you want to conveniently edit in a regular code
editor.
> Do you know where I can find a sample ?
>
> I repeat my new process:
>
> In Stdafx.h :
> #include "commctrl.h"
>
> In resource.h (in beginning):
> #define ISOLATION_AWARE_ENABLED 2
That goes into stdafx.h, not into resource.h - and make sure you put it
at the very top, before including any Windows headers.
> #define MANIFEST_RESOURCE_ID 2
That one goes into resource.h - or, if you use
ISOLATIONAWARE_MANIFEST_RESOURCE_ID, you don't need it at all.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
.
- Follow-Ups:
- Re: How to enable visual styles in BHO
- From: Seb
- Re: How to enable visual styles in BHO
- References:
- How to enable visual styles in BHO
- From: Pyerwoh
- Re: How to enable visual styles in BHO
- From: Igor Tandetnik
- Re: How to enable visual styles in BHO
- From: Pyerwoh
- Re: How to enable visual styles in BHO
- From: Igor Tandetnik
- Re: How to enable visual styles in BHO
- From: Ismail Pazarbasi
- Re: How to enable visual styles in BHO
- From: Igor Tandetnik
- Re: How to enable visual styles in BHO
- From: Ismail Pazarbasi
- Re: How to enable visual styles in BHO
- From: Seb
- Re: How to enable visual styles in BHO
- From: Igor Tandetnik
- Re: How to enable visual styles in BHO
- From: Seb
- How to enable visual styles in BHO
- Prev by Date: Re: How to enable visual styles in BHO
- Next by Date: RE: Drawing to a MetaFile
- Previous by thread: Re: How to enable visual styles in BHO
- Next by thread: Re: How to enable visual styles in BHO
- Index(es):
Relevant Pages
|
|