Solved

How to redefine SetWindowText

Posted on 2008-06-09
3
459 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 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

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ā€¦
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

688 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