How to call a window developed in C # via FindWindow api

I am new to C # and xaml code. I have one example code that is implemented in C #. when i looked at the xaml file i got <Window x:Class="test.MainWindow">.

Thus, test.MainWindowindicates the class name for this window.

I am trying to call this window from another application that was developed in win 32. I am trying to pass this class name FindWindow("test.MainWindow",NULL), but it fails. something is missing.

How can I change the class name of a window designed in C #?

Thank,

Sagar

+3
source share
2 answers

FindWindow does not recognize the xaml class name.

Try using

<Window x:Class="test.MainWindow" Title="MyTestWindow">

FindWindow(NULL,"MyTestWindow");
+4
source

#, Spy ++ , ..

0

All Articles