Click here to Skip to main content
15,902,492 members
Home / Discussions / C#
   

C#

 
GeneralIcon for EXE file Pin
Khang Nguyen22-Oct-03 6:12
Khang Nguyen22-Oct-03 6:12 
GeneralRe: Icon for EXE file Pin
Daniel M. Edwards22-Oct-03 8:33
Daniel M. Edwards22-Oct-03 8:33 
GeneralRe: Icon for EXE file Pin
Khang Nguyen22-Oct-03 9:31
Khang Nguyen22-Oct-03 9:31 
QuestionCreating Event ID's for Eventlog ? Pin
LongRange.Shooter22-Oct-03 6:11
LongRange.Shooter22-Oct-03 6:11 
GeneralCombobox index Pin
Mike Osbahr22-Oct-03 4:56
Mike Osbahr22-Oct-03 4:56 
GeneralWindows services Pin
Hambi22-Oct-03 2:37
Hambi22-Oct-03 2:37 
GeneralRe: Windows services Pin
Heath Stewart22-Oct-03 5:27
protectorHeath Stewart22-Oct-03 5:27 
GeneralPainting the title bar Pin
wangier21-Oct-03 23:41
wangier21-Oct-03 23:41 
Please check following codes, it dosen'g work properly, the title bar is still empty.
( the method PanitNonClientArea(Graphics, RectangleF) can work properly. )


<br />
protected override void WndProc(ref Message m)<br />
{<br />
	Graphics g;<br />
	RectangleF rectf;<br />
<br />
	Point pt;<br />
<br />
	switch (m.Msg)<br />
	{<br />
		case WMConsts.WM_NCPAINT :<br />
			IntPtr hrgn = m.WParam;<br />
			if ( hrgn != (IntPtr)1 )<br />
			{<br />
				Region rgn = Region.FromHrgn(hrgn);<br />
				g = CreateGraphics();<br />
				rectf = rgn.GetBounds(g);<br />
				PaintNonClientArea(g, rectf);<br />
			}<br />
			else<br />
			{<br />
				g = CreateGraphics();<br />
				rectf = new RectangleF(0,-23, Width, 23);<br />
				PaintNonClientArea(g, rectf);<br />
				g.Dispose();<br />
			}<br />
			<br />
			//base.WndProc(ref m);<br />
			break;<br />
<br />
		default :<br />
			base.WndProc (ref m);<br />
			break;<br />
	}<br />
}<br />

Generalcontrol on Desktop Pin
vikramlinux21-Oct-03 22:19
vikramlinux21-Oct-03 22:19 
GeneralRe: control on Desktop Pin
Heath Stewart22-Oct-03 5:23
protectorHeath Stewart22-Oct-03 5:23 
GeneralRe: control on Desktop Pin
Bo Hunter22-Oct-03 12:35
Bo Hunter22-Oct-03 12:35 
GeneralRe: control on Desktop Pin
Heath Stewart22-Oct-03 12:52
protectorHeath Stewart22-Oct-03 12:52 
GeneralInternet Explorer` Pin
Srikar Y21-Oct-03 19:31
Srikar Y21-Oct-03 19:31 
GeneralRe: Internet Explorer` Pin
Heath Stewart22-Oct-03 4:11
protectorHeath Stewart22-Oct-03 4:11 
GeneralRe: Internet Explorer` Pin
Philip Fitzsimons22-Oct-03 8:01
Philip Fitzsimons22-Oct-03 8:01 
GeneralDrawing zigzag red lines under words Pin
Meysam Mahfouzi21-Oct-03 19:00
Meysam Mahfouzi21-Oct-03 19:00 
QuestionCan not display toolbar icons, a framework bug? Pin
Libra21-Oct-03 17:47
Libra21-Oct-03 17:47 
GeneralComboBox Pin
Gary Kirkham21-Oct-03 17:09
Gary Kirkham21-Oct-03 17:09 
GeneralRe: ComboBox Pin
Heath Stewart22-Oct-03 3:50
protectorHeath Stewart22-Oct-03 3:50 
GeneralRe: ComboBox Pin
J. Dunlap22-Oct-03 9:33
J. Dunlap22-Oct-03 9:33 
GeneralRe: ComboBox Pin
Heath Stewart22-Oct-03 9:36
protectorHeath Stewart22-Oct-03 9:36 
QuestionHow to get title bar's graphics or its retangle? Pin
wangier21-Oct-03 16:42
wangier21-Oct-03 16:42 
GeneralCapture HTML as Image Pin
Member 31415321-Oct-03 15:28
Member 31415321-Oct-03 15:28 
GeneralWeb Site Scrape Problem Pin
Member 50249221-Oct-03 12:36
Member 50249221-Oct-03 12:36 
GeneralRe: Web Site Scrape Problem Pin
Kentamanos21-Oct-03 12:59
Kentamanos21-Oct-03 12:59 

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.