Click here to Skip to main content
15,918,193 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: setdlgitem text is not showing the message. Pin
Amit Agarrwal27-Jun-06 3:38
Amit Agarrwal27-Jun-06 3:38 
GeneralRe: setdlgitem text is not showing the message. Pin
Hamid_RT27-Jun-06 3:51
Hamid_RT27-Jun-06 3:51 
GeneralRe: setdlgitem text is not showing the message. Pin
Amit Agarrwal27-Jun-06 3:59
Amit Agarrwal27-Jun-06 3:59 
GeneralRe: setdlgitem text is not showing the message. Pin
Hamid_RT27-Jun-06 4:11
Hamid_RT27-Jun-06 4:11 
GeneralRe: setdlgitem text is not showing the message. Pin
Amit Agarrwal28-Jun-06 1:20
Amit Agarrwal28-Jun-06 1:20 
AnswerRe: setdlgitem text is not showing the message. Pin
James R. Twine27-Jun-06 1:52
James R. Twine27-Jun-06 1:52 
GeneralRe: setdlgitem text is not showing the message. Pin
Amit Agarrwal27-Jun-06 1:59
Amit Agarrwal27-Jun-06 1:59 
GeneralRe: setdlgitem text is not showing the message. Pin
James R. Twine27-Jun-06 2:05
James R. Twine27-Jun-06 2:05 
   Use ::GetDlgItem( CTRLID ) to get an HWND for the control.  Then use ::IsWindow( HWND ) to see if it is valid.  Do not assume that a non-NULL HWND is always a valid one - it could be garbage, or it could refer to a destroyed control (especially if it is stored in a variable or the control is destroyed in-between the two calls).

   A brute-force way to see if the control has a pump is to use ::SendMessageTimeout(...) to send a WM_NULL value to the control and see if the message is processed or if an error/timeout happens.

   Peace!

-=- James
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
DeleteFXPFiles & CheckFavorites
(Please rate this post!)
GeneralRe: setdlgitem text is not showing the message. Pin
Amit Agarrwal27-Jun-06 3:13
Amit Agarrwal27-Jun-06 3:13 
GeneralRe: setdlgitem text is not showing the message. Pin
James R. Twine27-Jun-06 3:27
James R. Twine27-Jun-06 3:27 
GeneralRe: setdlgitem text is not showing the message. Pin
Amit Agarrwal27-Jun-06 3:30
Amit Agarrwal27-Jun-06 3:30 
GeneralRe: setdlgitem text is not showing the message. Pin
Hamid_RT27-Jun-06 3:45
Hamid_RT27-Jun-06 3:45 
GeneralRe: setdlgitem text is not showing the message. Pin
Amit Agarrwal27-Jun-06 3:48
Amit Agarrwal27-Jun-06 3:48 
GeneralRe: setdlgitem text is not showing the message. Pin
James R. Twine27-Jun-06 6:45
James R. Twine27-Jun-06 6:45 
GeneralRe: setdlgitem text is not showing the message. Pin
Amit Agarrwal27-Jun-06 19:13
Amit Agarrwal27-Jun-06 19:13 
AnswerRe: setdlgitem text is not showing the message. Pin
James R. Twine28-Jun-06 13:25
James R. Twine28-Jun-06 13:25 
GeneralRe: setdlgitem text is not showing the message. Pin
Amit Agarrwal29-Jun-06 0:21
Amit Agarrwal29-Jun-06 0:21 
Questionwin32 static library(NO MFC) Pin
sach!!27-Jun-06 1:03
sach!!27-Jun-06 1:03 
AnswerRe: win32 static library(NO MFC) [modified] Pin
John M. Drescher27-Jun-06 3:35
John M. Drescher27-Jun-06 3:35 
GeneralRe: win32 static library(NO MFC) Pin
sach!!27-Jun-06 19:14
sach!!27-Jun-06 19:14 
GeneralRe: win32 static library(NO MFC) Pin
Jeremy Falcon28-Jun-06 13:13
professionalJeremy Falcon28-Jun-06 13:13 
GeneralRe: win32 static library(NO MFC) Pin
Jörgen Sigvardsson28-Jun-06 14:20
Jörgen Sigvardsson28-Jun-06 14:20 
GeneralRe: win32 static library(NO MFC) Pin
Jeremy Falcon28-Jun-06 14:54
professionalJeremy Falcon28-Jun-06 14:54 
GeneralRe: win32 static library(NO MFC) Pin
Jörgen Sigvardsson28-Jun-06 22:05
Jörgen Sigvardsson28-Jun-06 22:05 
GeneralRe: win32 static library(NO MFC) Pin
Jeremy Falcon29-Jun-06 6:39
professionalJeremy Falcon29-Jun-06 6:39 

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.