Click here to Skip to main content
15,917,862 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDialog message question Pin
Anonymous26-Sep-02 11:33
Anonymous26-Sep-02 11:33 
GeneralRe: Dialog message question Pin
Shog926-Sep-02 12:06
sitebuilderShog926-Sep-02 12:06 
GeneralThe WM_SET_TEXT message Pin
Fiffismurf26-Sep-02 11:21
Fiffismurf26-Sep-02 11:21 
GeneralRe: The WM_SET_TEXT message Pin
RedZenBird26-Sep-02 11:23
RedZenBird26-Sep-02 11:23 
GeneralRe: The WM_SET_TEXT message Pin
Fiffismurf26-Sep-02 11:35
Fiffismurf26-Sep-02 11:35 
GeneralRe: The WM_SET_TEXT message Pin
Jon Hulatt26-Sep-02 22:54
Jon Hulatt26-Sep-02 22:54 
GeneralRe: The WM_SET_TEXT message Pin
Steve S27-Sep-02 0:30
Steve S27-Sep-02 0:30 
GeneralRe: The WM_SET_TEXT message Pin
Shog926-Sep-02 11:56
sitebuilderShog926-Sep-02 11:56 
You've subclassed an Edit control, and are receiving the WM_SETTEXT message. This message is sent to the control in order to change the text; it is the only (safe) way to accomplish this for an Edit control. So, you simply need to call the original window procedure.

If you are not modifying the text specified in the message, you can just call CEdit:OnSetText() or CWnd::Default() - both of these will call the origial Edit control procedure with the original message parameters.

If you *are* modifying the text, you will need to call CWnd::DefWindowProc() and pass in WM_SETTEXT for the message parameter, 0 for the second parameter (wparam), and a pointer to the string as the last parameter (lparam). Note that this method is not the same as ::DefWindowProc(), as it will call the original window procedure if the window was subclassed.

Have fun! Smile | :)

Shog9
------
If you really what to get shitfacde tell a crowded bar that is is yourt borthday and hife your wallet. you ka will many more friends.
- David Wulff, Brithday selebrations, 9/19/02

GeneralRe: The WM_SET_TEXT message Pin
Fiffismurf27-Sep-02 7:13
Fiffismurf27-Sep-02 7:13 
QuestionCannot change transfer var? Pin
jimNLX26-Sep-02 11:07
jimNLX26-Sep-02 11:07 
AnswerRe: Cannot change transfer var? Pin
Gary R. Wheeler29-Sep-02 5:53
Gary R. Wheeler29-Sep-02 5:53 
QuestionIs there a limit on amt of timers in an app? Pin
JohnnyG26-Sep-02 11:06
JohnnyG26-Sep-02 11:06 
AnswerRe: Is there a limit on amt of timers in an app? Pin
RedZenBird26-Sep-02 11:18
RedZenBird26-Sep-02 11:18 
GeneralRe: Is there a limit on amt of timers in an app? Pin
JohnnyG27-Sep-02 3:17
JohnnyG27-Sep-02 3:17 
GeneralRe: Is there a limit on amt of timers in an app? Pin
RedZenBird27-Sep-02 6:52
RedZenBird27-Sep-02 6:52 
GeneralRe: Is there a limit on amt of timers in an app? Pin
JohnnyG27-Sep-02 9:11
JohnnyG27-Sep-02 9:11 
AnswerRe: Is there a limit on amt of timers in an app? Pin
Shog926-Sep-02 12:12
sitebuilderShog926-Sep-02 12:12 
GeneralDialog boxes and Notification Msg Prob. Pin
Phrozen Banana26-Sep-02 10:53
sussPhrozen Banana26-Sep-02 10:53 
GeneralParsing cmd line arguments in Win32 appl Pin
rsasalm_26-Sep-02 10:41
rsasalm_26-Sep-02 10:41 
GeneralRe: Parsing cmd line arguments in Win32 appl Pin
Jon Hulatt26-Sep-02 22:57
Jon Hulatt26-Sep-02 22:57 
General#define and data types Pin
James A Beggs26-Sep-02 9:33
James A Beggs26-Sep-02 9:33 
GeneralRe: #define and data types Pin
Pavel Klocek26-Sep-02 9:38
Pavel Klocek26-Sep-02 9:38 
GeneralRe: #define and data types Pin
Maciej Pirog26-Sep-02 9:47
Maciej Pirog26-Sep-02 9:47 
GeneralRe: #define and data types Pin
RedZenBird26-Sep-02 10:04
RedZenBird26-Sep-02 10:04 
GeneralRe: #define and data types Pin
James A Beggs26-Sep-02 10:12
James A Beggs26-Sep-02 10:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.