Click here to Skip to main content
15,890,825 members
Home / Discussions / WPF
   

WPF

 
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 
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 
Hi,
You're rather trying to do something that will break WPF!
WPF is rendered using DirectX. The whole thing, there is just a window wrapper for win32 environment. You cannot do anything by passing it an WM_PAINT message.

Here comes the fix. Set up a winforms host inside your app xaml. Put a label control (winforms equivalent of STATIC) inside the host . Set the text to empty. get it's HWND by getting its Handle property and pass it to your native library that does OpenGL stuff through P/Invoke.

Here is a MSDN Walkthrough to guide you. Just replace that MaskedTextBox code with a Label.

Good Luck!
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 
GeneralRe: WPF Simular to tree view Pin
Saksida Bojan2-May-13 7:41
Saksida Bojan2-May-13 7:41 
QuestionWPF User Controls - Interacting With Other Controls Pin
Kevin Marois19-Apr-13 5:10
professionalKevin Marois19-Apr-13 5:10 
AnswerRe: WPF User Controls - Interacting With Other Controls Pin
Mycroft Holmes19-Apr-13 13:19
professionalMycroft Holmes19-Apr-13 13:19 

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.