noah.ehrnstrom
noah.ehrnstrom

Reputation: 182

Convert HWND to LPWSTR?

I have the following code:

MessageBox(NULL, NULL, (LPCWSTR)FindWindow(NULL, L"Untitled - Notepad"), MB_OK);

How can i make the messagebox's title be the Window Handle to notepad? Is there any effiecient and simple way to do this using c++?

Upvotes: 0

Views: 245

Answers (0)

Related Questions