By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,602 Members | 1,473 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,602 IT Pros & Developers. It's quick & easy.

Need example of using WinAPI "CreateWindowEx" in c#

P: n/a
Need example of using WinAPI "CreateWindowEx" in c# any help would be
appreciated.
Nov 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
I am really curious as to why you would want to call CreateWindowEx, but
nonetheless here is your answer.

You need to use a DllImport attribute. i.e. -

[DllImport("user32.dll")]

Of course there is going to be some data marsheling involved to convert clr
types to native.

A good resource for this is www.dotnetinterop.com

Take care!

Nathan Neitzke
Embry Riddle University
Daytona Beach, FL

"Patrick Blackman" wrote:
Need example of using WinAPI "CreateWindowEx" in c# any help would be
appreciated.

Nov 17 '05 #2

P: n/a
I wanted to create a richtextbox using the msftedit 4.1 dll instead of the
riched20.dll which is hard coded in the VS 2003 & 2005

"Nathan Neitzke" <Nathan Ne*****@discussions.microsoft.com> wrote in message
news:68**********************************@microsof t.com...
I am really curious as to why you would want to call CreateWindowEx, but
nonetheless here is your answer.

You need to use a DllImport attribute. i.e. -

[DllImport("user32.dll")]

Of course there is going to be some data marsheling involved to convert
clr
types to native.

A good resource for this is www.dotnetinterop.com

Take care!

Nathan Neitzke
Embry Riddle University
Daytona Beach, FL

"Patrick Blackman" wrote:
Need example of using WinAPI "CreateWindowEx" in c# any help would be
appreciated.

Nov 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.