D
D
DoubleTree2021-11-03 21:19:55
C++ / C#
DoubleTree, 2021-11-03 21:19:55

Working with " " (char[])?

Hello. I have a question. How to make it clear with ++:

Let's say I use
HWND hWnd = FindWindow(0, "ch")

ch is the title, which can be "Word" and just "Word", that is, there may or may not be spaces. I can't figure out how to tell C++ that the main thing for me is that the Word is there, and what's after is not important.

For example, when searching in explorer, we can do this

*.exe
or
name*

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Korotenko, 2021-11-03
@firedragon

there is a function to enumerate all windows, get a list and search as you like.
the only way

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question