473,606 Members | 2,200 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

setting a caption of window using it's handel

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!
Nov 17 '05 #1
3 1711
"Brian Henry" <[REMOVE-ME]br******@adelph ia.net> wrote in message
news:%2******** **********@tk2m sftngp13.phx.gb l...
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.
--
Jeff Partch [VC++ MVP]
Nov 17 '05 #2
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" <[REMOVE-ME]br******@adelph ia.net> wrote in message
news:%2******** **********@tk2m sftngp13.phx.gb l...
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!

Nov 17 '05 #3
"Brian Henry" <[REMOVE-ME]br******@adelph ia.net> wrote in message
news:OF******** ******@TK2MSFTN GP11.phx.gbl...
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.
"Brian Henry" <[REMOVE-ME]br******@adelph ia.net> wrote in message
news:%2******** **********@tk2m sftngp13.phx.gb l...
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!


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.551 / Virus Database: 343 - Release Date: 12/11/2003
Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
18342
by: Dixie | last post by:
Can I set the Format property in a date/time field in code? Can I set the Input Mask in a date/time field in code? Can I set the Format of a Yes/No field to Checkbox in code? I am working on a remote update of tables and fields and can't find enough information on these things. Also, how do you index a field in code?
8
1832
by: vizziee | last post by:
Hi all, I need some good primer books on Handel-C. Plz. send-in the titles. Thanx in advance.
0
3043
by: Chenghui Li | last post by:
We have a problem with the Windows XP theme: We have a IDE which allows other developers to develop visual programs for their customers. Our IDE allow them to set font for window captions easyly (through a dialog). It works fine fo W98, 2000, NT, and XP is the theme is Classic. But on XP if the theme is "Windows XP", the we have a problem: if the developer set the caption font to be say, "Script" (and all non-default font), then the...
2
997
by: Brian Henry | last post by:
If I have the handel of a application window.. like the handel for the system tray "Shell_TrayWnd" how would i be able to interface to that handel? so i could add events or properties? Thanks!
6
1205
by: Brian Henry | last post by:
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!
2
6450
by: Trammel | last post by:
Hi. I have been trying to make a simple application that will sit in the background and alert me of any changes in window focus (IE: Pop-up windows) on my system. I have used DirectTextToSpeech from Microsoft and tried the following code... The problem I am having is that it detects its own caption fine... but no captions of other windows :¬/ Could someone please have a look at the following code and lemme know what
55
10680
by: salad | last post by:
I have contained in a listbox the Window's caption, the class name for the window, and the hWND of the window. Is there a way, using the data from above, to activate/set focus to that window?
9
1987
by: Abhishek | last post by:
Hi, How do i find the window caption by using the hmodule of that window? Regards Abhishek
11
4987
by: Chris Beall | last post by:
See http://pages.prodigy.net/chris_beall/Demo/photo%20block%20experiments.html I've ended up with what seems like a rather complex structure for what I thought would be a somewhat simple problem. Even that complex solution works well only in FireFox (haven't tested Safari...). Can anyone come up with a better solution, where 'better' means: - Works as well as the example above, but is simpler. OR
0
8015
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8439
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8430
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8094
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8305
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
5966
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5465
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3930
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
1296
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.