Click here to Skip to main content
16,013,918 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: win32 window as c# wpf control Pin
SledgeHammer0129-Apr-13 9:28
SledgeHammer0129-Apr-13 9:28 
GeneralRe: win32 window as c# wpf control Pin
mkusnjer30-Apr-13 5:19
mkusnjer30-Apr-13 5:19 
GeneralRe: win32 window as c# wpf control Pin
SledgeHammer0130-Apr-13 10:58
SledgeHammer0130-Apr-13 10:58 
GeneralRe: win32 window as c# wpf control Pin
mkusnjer1-May-13 8:31
mkusnjer1-May-13 8:31 
GeneralRe: win32 window as c# wpf control Pin
SledgeHammer011-May-13 10:46
SledgeHammer011-May-13 10:46 
GeneralRe: win32 window as c# wpf control Pin
mkusnjer1-May-13 12:11
mkusnjer1-May-13 12:11 
GeneralRe: win32 window as c# wpf control Pin
SledgeHammer011-May-13 12:20
SledgeHammer011-May-13 12:20 
GeneralRe: win32 window as c# wpf control Pin
mkusnjer1-May-13 12:39
mkusnjer1-May-13 12:39 
Just as a note, this two methods return the same hwnd (I was using the later option).

Window www = App.Current.MainWindow;

            HwndSource hwndS = (HwndSource)PresentationSource.FromVisual(www);
            Console.WriteLine("hwndSource: " + hwndS.Handle);

            IntPtr hwnd = new WindowInteropHelper(www).Handle;
            Console.WriteLine("hwnd: " + hwnd);


I also thought it would be simple. Just create a c++ win32 window inside of wpf and all would work but somehow it is not that simple. I'll try some more options I found online.

My guess is that I need to somehow paste info from BeginPaint(IntPtr hwnd, PAINTSTRUCT ps) PAINTSTRUCT to overriden OnRender(DrawingContext dc) DrawingContext.

But that probably won't work either.

Anyway thx for help.
GeneralRe: win32 window as c# wpf control Pin
SledgeHammer011-May-13 13:00
SledgeHammer011-May-13 13:00 
GeneralRe: win32 window as c# wpf control Pin
mkusnjer1-May-13 13:24
mkusnjer1-May-13 13:24 
AnswerRe: win32 window as c# wpf control Pin
AlphaDeltaTheta3-May-13 4:33
AlphaDeltaTheta3-May-13 4:33 
QuestionDynamically create radiobuttons under the group header that can span to N - number of groups Pin
Rajesh Sajjanar27-Apr-13 10:29
Rajesh Sajjanar27-Apr-13 10:29 
AnswerRe: Dynamically create radiobuttons under the group header that can span to N - number of groups Pin
Kenneth Haugland27-Apr-13 12:32
mvaKenneth Haugland27-Apr-13 12:32 
AnswerRe: Dynamically create radiobuttons under the group header that can span to N - number of groups Pin
Mycroft Holmes27-Apr-13 13:06
professionalMycroft Holmes27-Apr-13 13:06 
QuestionIdeaBlade vs OData Pin
Super Lloyd25-Apr-13 18:36
Super Lloyd25-Apr-13 18:36 
QuestionWPF Login in MVVM Issue Pin
KishoreUHG21-Apr-13 23:44
KishoreUHG21-Apr-13 23:44 
AnswerRe: WPF Login in MVVM Issue Pin
Mycroft Holmes21-Apr-13 23:50
professionalMycroft Holmes21-Apr-13 23:50 
GeneralRe: WPF Login in MVVM Issue Pin
KishoreUHG21-Apr-13 23:52
KishoreUHG21-Apr-13 23:52 
GeneralRe: WPF Login in MVVM Issue Pin
Mycroft Holmes21-Apr-13 23:59
professionalMycroft Holmes21-Apr-13 23:59 
GeneralRe: WPF Login in MVVM Issue Pin
KishoreUHG22-Apr-13 0:08
KishoreUHG22-Apr-13 0:08 
AnswerRe: WPF Login in MVVM Issue Pin
Wayne Gaylard22-Apr-13 1:44
professionalWayne Gaylard22-Apr-13 1:44 
AnswerRe: WPF Login in MVVM Issue Pin
KishoreUHG22-Apr-13 2:52
KishoreUHG22-Apr-13 2:52 
GeneralRe: WPF Login in MVVM Issue Pin
Mycroft Holmes22-Apr-13 12:59
professionalMycroft Holmes22-Apr-13 12:59 
QuestionWPF Simular to tree view Pin
Saksida Bojan21-Apr-13 9:52
Saksida Bojan21-Apr-13 9:52 
AnswerRe: WPF Simular to tree view Pin
Richard MacCutchan21-Apr-13 22:39
mveRichard MacCutchan21-Apr-13 22:39 

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.