Click here to Skip to main content
15,888,733 members
Home / Discussions / C#
   

C#

 
GeneralNew FXCop released Pin
leppie14-Jun-03 1:55
leppie14-Jun-03 1:55 
GeneralRe: New FXCop released Pin
Rocky Moore14-Jun-03 15:33
Rocky Moore14-Jun-03 15:33 
GeneralRe: New FXCop released Pin
leppie14-Jun-03 16:16
leppie14-Jun-03 16:16 
QuestionBrowseForFolder Dialog settings starting Folder? Pin
STW13-Jun-03 19:48
STW13-Jun-03 19:48 
AnswerRe: BrowseForFolder Dialog settings starting Folder? Pin
dynamic13-Jun-03 23:35
dynamic13-Jun-03 23:35 
QuestionIs params a C# keyword? Pin
monrobot1313-Jun-03 12:54
monrobot1313-Jun-03 12:54 
AnswerRe: Is params a C# keyword? Pin
leppie13-Jun-03 13:14
leppie13-Jun-03 13:14 
GeneralOwner-Drawn Scrollbars Pin
J. Dunlap13-Jun-03 12:28
J. Dunlap13-Jun-03 12:28 
I want to owner-draw some window scrollbars on a combo box dropdown, using a method that works under Windows 9x. Now, I know that pre-XP windows does not have any easy way of doing this.

If it was a listbox, you could make your own window, put a listbox without the hscroll and vscroll styles set, and scrollbar, on that window, and forward the messages (and the focus) to the combo. All fine and dandy, except that it would no longer be able to be derived from ListBox. It is also not a very good way of doing things.

You could also subclass the control and draw over the scrollbars (in the WM_NCPAINT notification), but that gets a little tricky, because the scrollbar redraws when the user scrolls. Eek! | :eek: On top of that, if you want a scrollbar with a different width, too bad. Eek! | :eek:

You could remove the hscroll and vscroll styles, resize the client area, and draw your own scrollbar from scratch, but the next time someone tries to change the scroll info using the SetScrollInfo API, there they are again.

Any ideas?


"Blessed are the peacemakers, for they shall be called sons of God." - Jesus

"You must be the change you wish to see in the world." - Mahatma Gandhi







GeneralRe: Owner-Drawn Scrollbars Pin
J. Dunlap13-Jun-03 13:55
J. Dunlap13-Jun-03 13:55 
Generalgui event handling Pin
zuhx13-Jun-03 10:08
zuhx13-Jun-03 10:08 
GeneralRe: gui event handling Pin
Paresh Gheewala13-Jun-03 11:22
Paresh Gheewala13-Jun-03 11:22 
Questiondefault (optional) parameters in a function??? Pin
CherezZaboro13-Jun-03 10:06
CherezZaboro13-Jun-03 10:06 
AnswerRe: default (optional) parameters in a function??? Pin
leppie13-Jun-03 10:50
leppie13-Jun-03 10:50 
GeneralC# Language question for a guru Pin
albean13-Jun-03 9:49
albean13-Jun-03 9:49 
GeneralRe: C# Language question for a guru Pin
J. Dunlap13-Jun-03 10:36
J. Dunlap13-Jun-03 10:36 
GeneralOleDbCommands and OleDbDataAdapter Pin
mindfuck13-Jun-03 4:17
mindfuck13-Jun-03 4:17 
GeneralRe: OleDbCommands and OleDbDataAdapter Pin
Laimis13-Jun-03 5:35
Laimis13-Jun-03 5:35 
GeneralText File Reading Newbie Question Pin
Ricardo Kirkner13-Jun-03 3:45
Ricardo Kirkner13-Jun-03 3:45 
GeneralRe: Text File Reading Newbie Question Pin
Jim Stewart13-Jun-03 5:07
Jim Stewart13-Jun-03 5:07 
GeneralRe: Text File Reading Newbie Question Pin
Ricardo Kirkner13-Jun-03 6:20
Ricardo Kirkner13-Jun-03 6:20 
GeneralRe: Text File Reading Newbie Question Pin
Nick Parker13-Jun-03 8:25
protectorNick Parker13-Jun-03 8:25 
GeneralRe: Text File Reading Newbie Question Pin
dynamic13-Jun-03 15:23
dynamic13-Jun-03 15:23 
GeneralRe: Text File Reading Newbie Question Pin
leppie13-Jun-03 16:31
leppie13-Jun-03 16:31 
GeneralRe: Text File Reading Newbie Question Pin
dynamic13-Jun-03 23:16
dynamic13-Jun-03 23:16 
Questioncomponet for INTERNET EXPLORER programming in .NET? Pin
Asim N.13-Jun-03 3:03
Asim N.13-Jun-03 3:03 

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.