?
Solved

How to redefine SetWindowText

Posted on 2008-06-09
3
Medium Priority
?
467 Views
Last Modified: 2013-12-14
I want to redefine SetWindowText to my function, my_SetWindowText but can not seem to get it to work or any functions defined in winuser.h. I can do all the redefines I want for functions in header files such as winreg.h, winbase.h and etc. but for some reasone winuser.h fails. I define the redefines in my own header file as:
Example
#define my_SetWindowText      SetWindowText
I am working with a Windows Mobile 5 project, if that makes a difference.
0
Comment
Question by:atomicgs12
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 13

Assisted Solution

by:josgood
josgood earned 80 total points
ID: 21748344
Generally, I would say you need to specialize the control you're currently using and provide your SetWindowText there.  If I recall my MFC, SetWindowText is defined by CWnd and by many of the controls that specialize CWnd.
0
 

Author Comment

by:atomicgs12
ID: 21748783
I am not using MFC
0
 

Accepted Solution

by:
atomicgs12 earned 0 total points
ID: 21755228
I found the solution on my own.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question