I'm using visual c++ with many dialog classes. I want to change the dialog title at runtime. I used the SetWindowText() to do that but it changes also the main window title and I don't want that. Has anyone another idea?
Don't be childish, have patience for people to answer. We are doing voluntary help here and you should keep that in mind. Don't expect that your questions are answered in 2 minutes.
litera it's a char but seems to work ok because it changes the name the way I llike. What I don't like is that it changes the name of the main window, that with the menu.
litera it's a char but seems to work ok because it changes the name the way I llike. What I don't like is that it changes the name of the main window, that with the menu.
pass the windows handle of appropriate window.Like this
I don't have a pointer hwnd for the dialog. I tried to use "this" but I've got a sintax error; using another pointer I've got " the dialog is already opened".
My application works like that: I have a main window which remanins on top, with the menu. From the menu I'm calling the dialogs. In OnUpdateMyDialog () the dialog is opened and go on with the code. The SetWindowText changes the name of the dialog but it changes also the name of the main window. That's my problem.
I don't have a pointer hwnd for the dialog. I tried to use "this" but I've got a sintax error; using another pointer I've got " the dialog is already opened".
My application works like that: I have a main window which remanins on top, with the menu. From the menu I'm calling the dialogs. In OnUpdateMyDialog () the dialog is opened and go on with the code. The SetWindowText changes the name of the dialog but it changes also the name of the main window. That's my problem.
Bookmarks