Generate Message dialog response

John 506 Reputation points
2021-11-18T21:52:44.12+00:00

I need some examples regarding the following built-in methods:

GetWindowMesssageA, and GetWindowMessage method.

Which dynamic link library or header file would I need to include, and how to access them. Should I need to perform marshaling?

Developer technologies | Windows Forms
Developer technologies | C++
{count} votes

1 answer

Sort by: Most helpful
  1. YujianYao-MSFT 4,296 Reputation points Microsoft External Staff
    2021-11-19T07:02:57.483+00:00

    Hi @John ,

    Since I see that you use C++/CLI, you could create a button control and use the control to generate a dialog box, you could refer to my code.

    private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {  
    
    	Form dlg1;  
    	dlg1.ShowDialog();  
    }  
    

    Best regards,

    Elya


    If the answer is the right solution, please click "Accept Answer" and upvote it.If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.