|
|
Stories recently tagged with 'PInvoke'
|
|
submitted by
crpietschmann
26 days ago
geekswithblogs.net — Almost a year ago I've published first two articles titled "Drawing Custom Borders in Windows Forms" and they turned out to be the most successful part of my blog with almost 13 000 web views (however barely 2 000 people made through to the second part), 86 comments and almost 3 000 downloads till date. If so many people seem to be interested I guess it's about time to give you something new. I've been using this code in my own project for a while and was always told how cool it looks compared to other applications. However, there were also some people asking why wouldn't we do a full skinning engine and let people choose the skins themselves. Until now, I was excusing myself that there is no more time for such nonsense. What changed my mind? If you are using Infragistics NetAdvantage you already know what's coming from them in next release. In short I've got inspired by what they've done and in order not to fell behind I've decided to add my own skin support. read more...
|
|
tags:
Border, PInvoke, Theme, winforms, Win32 | tag it
Everyones tags: | Your tags: | |
|
|
|
|
|
submitted by
crpietschmann
26 days, 2 hours ago
geekswithblogs.net — In part one, I showed how to extend Form to access the non-client area of the window. Now we can start painting the borders we want. Having access to the Graphics object we can use any features of GDI+: draw lines, rectangles or other shapes, fill them using brushes, draw text and paint images. How you do this depends of your needs. For purpose of this article I will show you how to do this using set of ready-made bitmaps. read more...
|
|
tags:
PInvoke, Win32, winforms | tag it
Everyones tags: | Your tags: | |
|
|
|
|
|
submitted by
crpietschmann
26 days, 2 hours ago
geekswithblogs.net — I have split the code into two primary classes. First one, FormWithNonClientArea, extends the standard Form class by adding support for non-client area messages (more on this shortly) and can be uses for various scenarios. Second one, CustomBorderForm, utilizes these messages and represents a base class for drawing graphical borders composed of several bitmap parts. It also draws a form header including icon, text and form buttons (more on this later). This way I can separate dirty plumbing required for enabling non-client drawing and actual drawing of the graphical elements. So lets see how it works. read more...
|
|
tags:
PInvoke, Win32, winforms | tag it
Everyones tags: | Your tags: | |
|
|
|
|
|
published 5 months, 22 days ago, submitted by
Rickasaurus
5 months, 23 days ago
atalasoft.com — Following from my previous post on the topic of stack allocation, in this post I talk about three different ways to change a thread's stack size in C#. Each of these techniques have advantages and disadvantages which I discuss as well.
This post may also be of interesting to those learning about PInvoke or modifying the binary header. read more...
add a comment
|
category: C# | Views: 12
|
|
tags:
Memory, PInvoke, MultiThreading, C#, .Net | tag it
Everyones tags: | Your tags: | |
|
|
|
|
|
submitted by
crpietschmann
6 months, 18 days ago
pietschsoft.com — Here's the simple code necessary to add some custom menu items to your applications System Menu within a WPF application. If you're not familiar, the System Menu is the menu that shows up if you click on the apps icon in the upper left or if you right click the app in the taskbar.
read more...
|
|
tags:
PInvoke, Win32, WPF | tag it
Everyones tags: | Your tags: | |
|
|
|
|

Sponsored Link: www.carlist.ie
Ads via The Lounge
|