setting a caption of window using it's handel

  • Thread starter Thread starter Brian Henry
  • Start date Start date
B

Brian Henry

does anyone know the user32.dll function or how i can do this?

I want to set the caption of a window based on the handel i specify... i
already have the functions to get the handel of the window returned as an
integer... but i want to change the caption, ive been looking through the
user32.dll function list, but not sure which one does it. any help would be
nice, thanks!
 
Brian Henry said:
does anyone know the user32.dll function or how i can do this?

I want to set the caption of a window based on the handel i specify... i
already have the functions to get the handel of the window returned as an
integer... but i want to change the caption, ive been looking through the
user32.dll function list, but not sure which one does it. any help would be
nice, thanks!

See if either SetWindowText or SendMessage/WM_SETTEXT is what you're after.
 
one last question about the whole user32.dll thing, how would you resize a
window when you have the handle of that window.. i know you must set a
region (did a little W32 prorgamming).. but i cant remember much after that
(like change the size of the start button for example)... thanks!
 
Brian Henry said:
one last question about the whole user32.dll thing, how would you resize a
window when you have the handle of that window.. i know you must set a
region (did a little W32 prorgamming).. but i cant remember much after that
(like change the size of the start button for example)... thanks!

Have a look at the MoveWindow function.
 
Back
Top