Click here to Skip to main content
15,921,697 members
Home / Discussions / C#
   

C#

 
GeneralRe: TreeView & Checkboxes Pin
MrEyes14-Jul-04 7:31
MrEyes14-Jul-04 7:31 
GeneralSending but not receiving !!! Pin
Gimpy198314-Jul-04 6:00
Gimpy198314-Jul-04 6:00 
GeneralRe: Sending but not receiving !!! Pin
Nick Parker14-Jul-04 6:32
protectorNick Parker14-Jul-04 6:32 
GeneralRe: Sending but not receiving !!! Pin
Gimpy198315-Jul-04 8:18
Gimpy198315-Jul-04 8:18 
GeneralWM_COPY_DATA Pin
berndg14-Jul-04 6:00
berndg14-Jul-04 6:00 
GeneralRe: WM_COPY_DATA Pin
ERobishaw14-Jul-04 7:29
ERobishaw14-Jul-04 7:29 
GeneralChange a Window text size Pin
Dave@keyspell14-Jul-04 5:41
sussDave@keyspell14-Jul-04 5:41 
GeneralRe: Change a Window text size Pin
Heath Stewart14-Jul-04 5:55
protectorHeath Stewart14-Jul-04 5:55 
You'd have to enumerate all the windows (controls) in the window and, first, get their current font, change it, then set it again. You'll need to P/Invoke EnumWindows and SendMessage, as well as define WM_GETFONT (0x31) and WM_SETFONT (0x30). You may also need to define various GDI methods for creating an modifying fonts in this way.

Because of all that's required to P/Invoke, you might consider developing a Managed C++ assembly that uses native APIs and exposes this functionality as managed code. This allows you to use native APIs while providing an assembly that other managed languages can use and could potentially save you a lot of time having to P/Invoke lots of methods and defining lots of structs and consts.

 

Microsoft MVP, Visual C#
My Articles
GeneralRichTextBox.Rtf property argument exception Pin
partyganger14-Jul-04 4:10
partyganger14-Jul-04 4:10 
GeneralRe: RichTextBox.Rtf property argument exception Pin
LongRange.Shooter14-Jul-04 5:44
LongRange.Shooter14-Jul-04 5:44 
GeneralRe: RichTextBox.Rtf property argument exception Pin
Heath Stewart14-Jul-04 5:47
protectorHeath Stewart14-Jul-04 5:47 
GeneralComboBox problems... :( Pin
Radoslav Bielik14-Jul-04 3:41
Radoslav Bielik14-Jul-04 3:41 
GeneralRe: ComboBox problems... resolved (probably) Pin
Radoslav Bielik14-Jul-04 5:12
Radoslav Bielik14-Jul-04 5:12 
Questionhow to check language of Outlook Pin
Stephan Wright14-Jul-04 3:17
Stephan Wright14-Jul-04 3:17 
AnswerRe: how to check language of Outlook Pin
Nick Parker14-Jul-04 3:39
protectorNick Parker14-Jul-04 3:39 
GeneralRe: how to check language of Outlook Pin
Stephan Wright14-Jul-04 4:00
Stephan Wright14-Jul-04 4:00 
GeneralRe: how to check language of Outlook Pin
Nick Parker14-Jul-04 5:11
protectorNick Parker14-Jul-04 5:11 
AnswerRe: how to check language of Outlook Pin
Ivaylo®14-Jul-04 5:18
Ivaylo®14-Jul-04 5:18 
GeneralRe: how to check language of Outlook Pin
Nick Parker14-Jul-04 6:21
protectorNick Parker14-Jul-04 6:21 
GeneralRe: how to check language of Outlook Pin
Stephan Wright14-Jul-04 21:25
Stephan Wright14-Jul-04 21:25 
GeneralRe: how to check language of Outlook Pin
Ivaylo®14-Jul-04 21:56
Ivaylo®14-Jul-04 21:56 
GeneralWindowsForm Styles too Limited Pin
3green14-Jul-04 3:04
3green14-Jul-04 3:04 
GeneralRe: WindowsForm Styles too Limited Pin
Gary Thom14-Jul-04 4:24
Gary Thom14-Jul-04 4:24 
GeneralInternet Explorer, Flash and OnClick message... Pin
Alex Getman14-Jul-04 1:50
Alex Getman14-Jul-04 1:50 
GeneralRe: Internet Explorer, Flash and onclick message... Pin
Nick Parker14-Jul-04 3:21
protectorNick Parker14-Jul-04 3:21 

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.