Click here to Skip to main content
16,012,316 members
Home / Discussions / C#
   

C#

 
GeneralRe: on timer Pin
Stefan Troschuetz19-Oct-04 21:19
Stefan Troschuetz19-Oct-04 21:19 
GeneralRe: on timer Pin
Salil Khedkar19-Oct-04 22:52
Salil Khedkar19-Oct-04 22:52 
Questionhow to Add history to menu...? Pin
Kiran Satish19-Oct-04 20:39
Kiran Satish19-Oct-04 20:39 
AnswerRe: how to Add history to menu...? Pin
Stefan Troschuetz19-Oct-04 21:58
Stefan Troschuetz19-Oct-04 21:58 
AnswerRe: how to Add history to menu...? Pin
benjymous19-Oct-04 22:00
benjymous19-Oct-04 22:00 
GeneralRe: how to Add history to menu...? Pin
Kiran Satish20-Oct-04 12:30
Kiran Satish20-Oct-04 12:30 
GeneralListView Column Header Font Change Pin
Tony D. Abel19-Oct-04 13:44
Tony D. Abel19-Oct-04 13:44 
GeneralRe: ListView Column Header Font Change Pin
Nick Parker19-Oct-04 15:39
protectorNick Parker19-Oct-04 15:39 
There is a nice article on customizing the ListView located here[^]. Basically you will see that he has subclassed the NativeWindow. There are a few important steps; in particular, you must assign the handle of the subclassed native window to that of the handle to the header control's handle. Also, you will need to override the WndProc and watch for WM_SETFONT (0x0030). This will allow you to specify your own Font instance and then assign the WParam of your message the handle of your newly created font (call ToHfont() on your Font object), then obviously you will want to call base.WndProc(ref m); so your changes are propagated. The following P/Invoke signature will be needed:

[DllImport("User32.dll",CharSet = CharSet.Auto,SetLastError=true)]
public static extern IntPtr SendMessage(IntPtr hWnd, int msg, IntPtr wParam, IntPtr lParam);


- Nick Parker
My Blog | My Articles

General.net Variable Naming Conventions Pin
Jayman91119-Oct-04 13:18
Jayman91119-Oct-04 13:18 
GeneralRe: .net Variable Naming Conventions Pin
Steven Campbell19-Oct-04 13:22
Steven Campbell19-Oct-04 13:22 
GeneralRe: .net Variable Naming Conventions Pin
Jayman91119-Oct-04 13:28
Jayman91119-Oct-04 13:28 
GeneralAccessing form controls in code Pin
isittheweekendyet19-Oct-04 12:59
isittheweekendyet19-Oct-04 12:59 
GeneralRe: Accessing form controls in code Pin
Anonymous19-Oct-04 13:25
Anonymous19-Oct-04 13:25 
GeneralRe: Accessing form controls in code Pin
Nick Parker19-Oct-04 13:26
protectorNick Parker19-Oct-04 13:26 
GeneralRe: Accessing form controls in code Pin
isittheweekendyet19-Oct-04 14:34
isittheweekendyet19-Oct-04 14:34 
GeneralRe: Accessing form controls in code Pin
Nick Parker19-Oct-04 15:12
protectorNick Parker19-Oct-04 15:12 
GeneralRe: Accessing form controls in code Pin
isittheweekendyet20-Oct-04 0:19
isittheweekendyet20-Oct-04 0:19 
GeneralBest practices with password storage/use Pin
econner19-Oct-04 12:01
econner19-Oct-04 12:01 
GeneralRe: Best practices with password storage/use Pin
Nick Parker19-Oct-04 12:52
protectorNick Parker19-Oct-04 12:52 
GeneralRe: Best practices with password storage/use Pin
Steven Campbell19-Oct-04 13:20
Steven Campbell19-Oct-04 13:20 
Generalinsert picture in listbox Pin
hudhud19-Oct-04 10:50
hudhud19-Oct-04 10:50 
GeneralRe: insert picture in listbox Pin
Nick Parker19-Oct-04 15:59
protectorNick Parker19-Oct-04 15:59 
GeneralCompare lines in two large txt files Pin
sverre.andersen19-Oct-04 10:39
sverre.andersen19-Oct-04 10:39 
GeneralRe: Compare lines in two large txt files Pin
Nick Parker19-Oct-04 13:16
protectorNick Parker19-Oct-04 13:16 
GeneralQuestion about Interop with a DLL written in C++ Pin
kmansari19-Oct-04 10:23
kmansari19-Oct-04 10:23 

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.