Click here to Skip to main content
15,897,718 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: do you have researched desktop message, can you share your fruit to me? Pin
nenfa30-Nov-09 2:47
nenfa30-Nov-09 2:47 
GeneralRe: do you have researched desktop message, can you share your fruit to me? Pin
Code-o-mat30-Nov-09 20:55
Code-o-mat30-Nov-09 20:55 
GeneralRe: do you have researched desktop message, can you share your fruit to me? Pin
nenfa5-Jan-10 3:50
nenfa5-Jan-10 3:50 
QuestionExport to CSV with commas in strings Pin
maycockt30-Nov-09 0:16
maycockt30-Nov-09 0:16 
AnswerRe: Export to CSV with commas in strings Pin
CPallini30-Nov-09 0:39
mveCPallini30-Nov-09 0:39 
GeneralRe: Export to CSV with commas in strings Pin
maycockt30-Nov-09 0:55
maycockt30-Nov-09 0:55 
QuestionGet selected data in list control Pin
billu 229-Nov-09 22:47
billu 229-Nov-09 22:47 
AnswerRe: Get selected data in list control Pin
CPallini29-Nov-09 22:53
mveCPallini29-Nov-09 22:53 
QuestionAbout creating and hiding window in win32 Pin
Nandu_77b29-Nov-09 21:54
Nandu_77b29-Nov-09 21:54 
QuestionRe: About creating and hiding window in win32 Pin
_AnsHUMAN_ 29-Nov-09 22:32
_AnsHUMAN_ 29-Nov-09 22:32 
AnswerRe: About creating and hiding window in win32 Pin
Nandu_77b29-Nov-09 22:37
Nandu_77b29-Nov-09 22:37 
QuestionRe: About creating and hiding window in win32 Pin
CPallini29-Nov-09 22:49
mveCPallini29-Nov-09 22:49 
AnswerRe: About creating and hiding window in win32 Pin
Nandu_77b29-Nov-09 23:32
Nandu_77b29-Nov-09 23:32 
AnswerRe: About creating and hiding window in win32 Pin
David Crow30-Nov-09 5:50
David Crow30-Nov-09 5:50 
Nandu_77b wrote:
Now my question is, finding a window handle using window name and hiding the window is a good idea or not in the real time application. Will this create a problem in the future? If not what is the best way to do it?


Using FindWindow() could work or it could possibly result in a failure or a deadlock. What FindWindow() does internally is call EnumWindows(), and for each top-level window handle found, it sends a WM_GETTEXT message to the window handle. Now if the thread that owns the handle is blocked (e.g., on a Semaphore, a Mutex, an Event, an I/O operation, or some other manner), the SendMessage() call will block until that thread is freed up. Worst case, this may never happen so FindWindow() will block forever.

"One man's wage rise is another man's price increase." - Harold Wilson

"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons


QuestionDraw image on Wizard (not header) so it appear on every page. Pin
Nitish Biswas 8429-Nov-09 20:09
Nitish Biswas 8429-Nov-09 20:09 
AnswerRe: Draw image on Wizard (not header) so it appear on every page. Pin
KingsGambit29-Nov-09 21:19
KingsGambit29-Nov-09 21:19 
QuestionWhat does this mean about the VC6/VS2003 compiler's option ( /O2 /Od) Pin
wangningyu29-Nov-09 14:17
wangningyu29-Nov-09 14:17 
AnswerRe: What does this mean about the VC6/VS2003 compiler's option ( /O2 /Od) Pin
Joe Woodbury29-Nov-09 15:54
professionalJoe Woodbury29-Nov-09 15:54 
AnswerRe: What does this mean about the VC6/VS2003 compiler's option ( /O2 /Od) Pin
David Crow29-Nov-09 15:55
David Crow29-Nov-09 15:55 
AnswerRe: What does this mean about the VC6/VS2003 compiler's option ( /O2 /Od) Pin
«_Superman_»29-Nov-09 18:47
professional«_Superman_»29-Nov-09 18:47 
GeneralRe: What does this mean about the VC6/VS2003 compiler's option ( /O2 /Od) Pin
wangningyu29-Nov-09 23:07
wangningyu29-Nov-09 23:07 
GeneralRe: What does this mean about the VC6/VS2003 compiler's option ( /O2 /Od) Pin
«_Superman_»30-Nov-09 5:16
professional«_Superman_»30-Nov-09 5:16 
AnswerRe: What does this mean about the VC6/VS2003 compiler's option ( /O2 /Od) Pin
Michael Schubert29-Nov-09 21:15
Michael Schubert29-Nov-09 21:15 
QuestionWhy I cannot have a ListControl in a CRecordView derived class? Pin
Larry Mills Sr29-Nov-09 7:09
Larry Mills Sr29-Nov-09 7:09 
AnswerRe: Why I cannot have a ListControl in a CRecordView derived class? Pin
«_Superman_»29-Nov-09 8:18
professional«_Superman_»29-Nov-09 8:18 

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.