Need example of using WinAPI "CreateWindowEx" in c#

  • Thread starter Thread starter Patrick Blackman
  • Start date Start date
P

Patrick Blackman

Need example of using WinAPI "CreateWindowEx" in c# any help would be
appreciated.
 
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
 
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 said:
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 said:
Need example of using WinAPI "CreateWindowEx" in c# any help would be
appreciated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top