Changing Style of Buttons, knobs, etc. in Visual C++ - image

I am very new to Visual c++ and am still trying to learn some very basic things. I am trying to change the default pictures for knobs, buttons, etc. and replace them with my own pictures. How Can I accomplish this? (I am using Microsoft Visual C++ 2010).

You will need to learn how to "ownerdraw" your controls (buttons, ... ); or if you go the easier way, you can use bitmaps in CButton (CBitmapButton) but it might not be enough for you.
This MSDN technical note is a good start : http://msdn.microsoft.com/en-us/library/bk2h3c6w%28VS.71%29.aspx

Related

Visual Studio | Window layer grid

I just signed up on this site because I think here are the most qualified people for answering my questions. Maybe someday I can answer some too :)
<p>Hello, Stackoverflow!</p>
Here is my question:
There are many beautiful IDE's like Atom or Sublimetext where you can adjust your window layer just like you want. Now, i find trouble in Visual Studio doing this.
Here is a preview how it should look like (Atom)
This is my favourite layout and i want this to be in VS
So, is it possible? Maybe with an extension or even a built in function?

Visual studio XAML IDE Vertical tag visualisation

Im just wondering what you use to get the vertical visualisation lines between XAML open and close tags, it makes the XMALso much easier to read.
I cant find a better place to ask this but im sure there might be, sorry if its broken the rules.
Do you mean the Visual Studio extension called "Indent Guides": https://visualstudiogallery.msdn.microsoft.com/e792686d-542b-474a-8c55-630980e72c30 ?
It puts little guides in your VS2013 (and perhaps 2012) that show indents in the XAML editor. If you didn't mean that, I'd still recommend a look as it makes things a lot easier to read!

WP7 / WP8 - Apply text styles

As you know, in Windows Phone SDK there are several styles that you can apply to textblocks.
For reference: MSDN
Since you can't always remember the full name of the style, is there an easy way to apply them? Do I really have to go to that link everytime I need to apply a new style?
IntelliSense is not helpful enough? I usually, write StaticResource text and then the list gets filtered with all the styles containing the "text" string. Kind of depends according to your needs. If you want to apply for font style, write "font" and see the list of suggestions.
Now, I'm not sure if my IntelliSense is as yours or is already enhanced by Resharper. If you haven't heard of it, take a look at it. You gotta hit CTRL+SPACE if the suggestion list isn't there, and it will get filled with possible matches. It's a nice productivity tool that does MUCH more and actually is not free but, I guess you could also get it crac... ahem :)
Other than this, I guess a quick bookmark to that web address, does that job pretty well. :)
The easiest way is to ensure you have the visual designer open while creating the view. You can right click on your TextBlock select Edit Style -> Apply Resource ->. From here you will see a long list of available styles to pick from.
I just found out that what I was looking for will be implemented in Visual Studio 2013!
Here you go: http://blogs.msdn.com/b/visualstudio/archive/2013/08/09/xaml-editor-improvements-in-visual-studio-2013.aspx

How can I customize the text editor or color tag parts of my code in Visual Studio?

How do I customize, extend the text editor, or color tag parts of my code?
I would like Visual Studio to color code parts of my code. Can I use #region and give it a color?
Is there any way to make the background between two parentheses have a different color? (I want each code "block" to have its own color.)
I've looked here for some insight, but they all are implemented based "on what you select". All I want is to have the text editor "render" the text in a different way based on some rules.
I haven't seen such feature, but there is something quite close to what you are looking for in ReSharper. A setting called "Highlight matching delimiters". Looks like this in use:
I wanted tell you this because
1) You might be interested in resharper and
2) resharper is able to do the highlighting so maybe someone can make an add-in or something to add this kind of feature. Maybe you? :)
I don't know of anything exactly like what you're asking for, but the VS10x Code Map extention might help: http://www.axtools.com/products-vs2010-extensions.php
It will give you a nice overview of the code on the side, and make navigation somewhat easier.
The download button on the right lets you download a trial version from the Visual Studio Gallery at msdn.microsoft.com. I think you can also find it directly from the extentions view in VS2010.

How can I write a plugin for VS2010 using MEF?

I've seen lots of MEF code for plugging into custom apps, but I am yet to find out how to write a plugin for VS2010 using MEF. I was under the impression that the new IDE supported this.
Does anyone know if this is supported 'out of the box', or does it require an install. Does anyone have any links, tips, etc to get me started.
MEF is the primary extension mechanism for extending the editor. If you install the SDK, there are a few new project samples set up to create editor extensions, found under C# (or VB)->Extensibility. These include:
Editor classifier – for providing syntax highlighting
Editor margin – putting a margin along the sides of the editor, with arbitrary WPF content
Editor text/viewport adornment – for putting WPF visuals into the editor
You can find overview documentation on MSDN: Extending the editor, and Editor extension points.
Some samples you may want to look at: editor samples on code.msdn.microsoft.com, a couple more on editorsamples.codeplex.com, and the source for all the samples I've written.
I blog about writing editor extensions. On there, you can find descriptions of most of the extensions I've written, along with more general posts about performance, design of the new editor, etc.
Questions posted on the editor forum on msdn also are answered by various members of the editor team.

Resources