Click here to Skip to main content
15,889,266 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# equivalent to CStringList Pin
Nick Parker2-Sep-04 9:31
protectorNick Parker2-Sep-04 9:31 
GeneralDos commands in C# Pin
exhaulted2-Sep-04 4:31
exhaulted2-Sep-04 4:31 
GeneralRe: Dos commands in C# Pin
mav.northwind2-Sep-04 5:36
mav.northwind2-Sep-04 5:36 
GeneralRe: Dos commands in C# Pin
exhaulted2-Sep-04 6:14
exhaulted2-Sep-04 6:14 
GeneralRe: Dos commands in C# Pin
mav.northwind2-Sep-04 6:28
mav.northwind2-Sep-04 6:28 
GeneralThe Infragistics Web Grid Big BIG problem Pin
Anonymous2-Sep-04 4:20
Anonymous2-Sep-04 4:20 
GeneralRe: The Infragistics Web Grid Big BIG problem Pin
Dave Kreskowiak2-Sep-04 5:50
mveDave Kreskowiak2-Sep-04 5:50 
GeneralDouble Buffering API Theme paint problem Pin
Tristan Rhodes2-Sep-04 1:52
Tristan Rhodes2-Sep-04 1:52 
I'm trying to double buffer DrawThemeBackground with a number of other custom drawings to prevent flicker.

The problem is, OpenThemeData is a handle to a window.
If i use a parent window as the handle to open the theme, the child paints fine.
The bitmap HDC value is valid. But if I try to use the HDC to draw directly to the bitmap using windows theme, it just doesn't render.
If i draw onto the bitmap using just conventional graphics comands, these draw.

It's really frustrating as I'm out of options really. I Can't just think of any other way to do this.

<br />
		private void CustomDrawThisControl(IntPtr pTHEME, Graphics g)<br />
		{<br />
			//Create Graphics handle<br />
			DBGraphics l_ClientDC = new DBGraphics(); <br />
			l_ClientDC.CreateDoubleBuffer(this.Width, this.Height);<br />
			IntPtr l_HDC = l_ClientDC.g.GetHdc();<br />
<br />
//....Panel Generation<br />
<br />
//....Drawing <br />
<br />
//Render<br />
l_ClientDC.Render(g);<br />
<br />
//Release graphics Handle<br />
l_ClientDC.g.ReleaseHdc(l_HDC);<br />
}<br />


I've used a modified version of norm.net's double buffering class. But it basicaly works the same.

If anyone has anymore ideas about this, i'd be appreciative.

Cheers

Cata
GeneralRe: Double Buffering API Theme paint problem Pin
Werdna2-Sep-04 6:06
Werdna2-Sep-04 6:06 
GeneralRe: Double Buffering API Theme paint problem Pin
Tristan Rhodes2-Sep-04 8:59
Tristan Rhodes2-Sep-04 8:59 
Generalscroll bars in a picture box Pin
gijoebijoe2-Sep-04 1:30
gijoebijoe2-Sep-04 1:30 
GeneralRe: scroll bars in a picture box Pin
Sebastian Schneider2-Sep-04 2:27
Sebastian Schneider2-Sep-04 2:27 
GeneralRe: scroll bars in a picture box Pin
Sebastian Schneider2-Sep-04 2:37
Sebastian Schneider2-Sep-04 2:37 
GeneralMy images are gone (c#) Pin
adnanh752-Sep-04 0:42
adnanh752-Sep-04 0:42 
GeneralRe: My images are gone (c#) Pin
exhaulted2-Sep-04 1:47
exhaulted2-Sep-04 1:47 
GeneralRe: My images are gone (c#) Pin
adnanh752-Sep-04 1:53
adnanh752-Sep-04 1:53 
GeneralRe: My images are gone (c#) Pin
exhaulted2-Sep-04 3:38
exhaulted2-Sep-04 3:38 
GeneralRe: My images are gone (c#) Pin
mav.northwind2-Sep-04 3:46
mav.northwind2-Sep-04 3:46 
GeneralRe: My images are gone (c#) Pin
adnanh752-Sep-04 5:08
adnanh752-Sep-04 5:08 
GeneralRe: My images are gone (c#) Pin
exhaulted2-Sep-04 6:16
exhaulted2-Sep-04 6:16 
GeneralRe: My images are gone (c#) Pin
mav.northwind2-Sep-04 10:07
mav.northwind2-Sep-04 10:07 
GeneralChanging style of panel's scrollbar Pin
SaravananPV1-Sep-04 18:51
SaravananPV1-Sep-04 18:51 
QuestionHow to call an external .exe file from C# Pin
pavanarza11-Sep-04 18:25
pavanarza11-Sep-04 18:25 
AnswerRe: How to call an external .exe file from C# Pin
Corinna John1-Sep-04 19:32
Corinna John1-Sep-04 19:32 
Generalhelp. Web Service Pin
intrigued1-Sep-04 14:42
intrigued1-Sep-04 14:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.