Solved

How to redefine SetWindowText

Posted on 2008-06-09
3
450 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
  • 2
3 Comments
 
LVL 13

Assisted Solution

by:josgood
josgood earned 20 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Visual Studio 2013  Distorts Chrome Browser 2 172
dangers of teaching programming 10 130
Object Data Source 4 126
Oracle TopLink example 3 78
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 and create keystrokes in Netbeans IDE 8.0 for Windows.

785 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