Solved

How to redefine SetWindowText

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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…
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org Go to that link and select download selenium in the right hand columnThat will then direct you to their download page.From that page s…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

863 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now