Click here to Skip to main content
15,886,797 members
Home / Discussions / C#
   

C#

 
GeneralRe: Setting mouse position using C# Pin
Philip Fitzsimons27-Jan-03 6:12
Philip Fitzsimons27-Jan-03 6:12 
GeneralCalling DLL File In C# Pin
mo7amed27-Jan-03 4:13
mo7amed27-Jan-03 4:13 
GeneralRe: Calling DLL File In C# Pin
Nick Parker27-Jan-03 5:27
protectorNick Parker27-Jan-03 5:27 
GeneralRe: Calling DLL File In C# Pin
Dato27-Jan-03 8:23
Dato27-Jan-03 8:23 
QuestionCalling COM DLL From C#? Bad idea ? Pin
Dato27-Jan-03 4:07
Dato27-Jan-03 4:07 
AnswerRe: Calling COM DLL From C#? Bad idea ? Pin
Nick Parker27-Jan-03 5:30
protectorNick Parker27-Jan-03 5:30 
GeneralCrippled WNDPROC Pin
Roger Alsing27-Jan-03 3:54
Roger Alsing27-Jan-03 3:54 
GeneralRe: Crippled WNDPROC Pin
Jeff J27-Jan-03 11:59
Jeff J27-Jan-03 11:59 
WndProc() does not get all messages. Like with MFC, PreProcessMessage() handles everything from the message loop, and only dispatches whatever is deemed necessary, to WndProc(). I have had to override PreProcessMessage() to do more fundamental window manipulation.

Also, apparently for convenience, you can call a windowed control/form's SetStyle() method with ControlStyles.EnableNotifyMessage set to true, so you can catch the WndProc messages in OnNotifyMessage(). However, it won't catch anything WndProc doesn't already get.

As for custom window styles and extended styles (WS_* and WS_EX_* stuff), which are not to be confused with control/class styles (what GetStyle() and SetStyle() deal with), you need to override the CreateParams property, and set your styles there. There is an example on the CreateParams help page.

In general, you will have to do a lot of custom drawing to achieve what you are trying to do. Main menus are normally automatically placed right below the caption, and displace the client area downwards, so you will have to roll your own. Hope some of this helps.

Cheers
GeneralVB.Net code to C#.Net code Pin
Firas Rashid27-Jan-03 3:38
Firas Rashid27-Jan-03 3:38 
GeneralRe: VB.Net code to C#.Net code Pin
Philip Fitzsimons27-Jan-03 6:12
Philip Fitzsimons27-Jan-03 6:12 
GeneralCannot access a disposed object Pin
arkr26-Jan-03 20:18
arkr26-Jan-03 20:18 
GeneralRe: Cannot access a disposed object Pin
SimonS26-Jan-03 21:12
SimonS26-Jan-03 21:12 
GeneralRe: Cannot access a disposed object Pin
arkr27-Jan-03 19:29
arkr27-Jan-03 19:29 
GeneralRe: Cannot access a disposed object Pin
SimonS28-Jan-03 21:05
SimonS28-Jan-03 21:05 
Generalvalidating xml file entered by user. Pin
chito26-Jan-03 18:53
chito26-Jan-03 18:53 
QuestionLoading PCX Image in C#? Pin
Shock The Dark Mage26-Jan-03 14:53
Shock The Dark Mage26-Jan-03 14:53 
GeneralManaged DirectX Assemblies Pin
Heath Stewart26-Jan-03 11:41
protectorHeath Stewart26-Jan-03 11:41 
GeneralVS.NET vs. aximp Pin
Paul Riley26-Jan-03 8:13
Paul Riley26-Jan-03 8:13 
GeneralRe: VS.NET vs. aximp Pin
Stephane Rodriguez.26-Jan-03 8:25
Stephane Rodriguez.26-Jan-03 8:25 
GeneralRe: VS.NET vs. aximp Pin
Paul Riley26-Jan-03 10:32
Paul Riley26-Jan-03 10:32 
GeneralRe: VS.NET vs. aximp Pin
Heath Stewart26-Jan-03 11:33
protectorHeath Stewart26-Jan-03 11:33 
QuestionSimilar function as WindowFromPoint in .NET ? Pin
Wizard_0126-Jan-03 3:03
Wizard_0126-Jan-03 3:03 
AnswerRe: Similar function as WindowFromPoint in .NET ? Pin
leppie26-Jan-03 3:59
leppie26-Jan-03 3:59 
GeneralProblems with TabControl & XP Visual Styles Pin
Furty25-Jan-03 20:17
Furty25-Jan-03 20:17 
GeneralRe: Problems with TabControl & XP Visual Styles Pin
leppie25-Jan-03 20:27
leppie25-Jan-03 20:27 

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.