Click here to Skip to main content
15,902,915 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Access Denied Error Pin
led mike16-Jul-08 12:17
led mike16-Jul-08 12:17 
Questionhowto Post Message Pin
aei_totten16-Jul-08 7:52
aei_totten16-Jul-08 7:52 
AnswerRe: howto Post Message Pin
Cedric Moonen16-Jul-08 8:06
Cedric Moonen16-Jul-08 8:06 
GeneralRe: howto Post Message Pin
Stephen Hewitt16-Jul-08 13:09
Stephen Hewitt16-Jul-08 13:09 
GeneralRe: howto Post Message Pin
Cedric Moonen16-Jul-08 20:36
Cedric Moonen16-Jul-08 20:36 
GeneralRe: howto Post Message Pin
Stephen Hewitt16-Jul-08 20:41
Stephen Hewitt16-Jul-08 20:41 
AnswerRe: howto Post Message Pin
CPallini16-Jul-08 8:23
mveCPallini16-Jul-08 8:23 
AnswerRe: howto Post Message Pin
krmed16-Jul-08 10:25
krmed16-Jul-08 10:25 
If you're starting your thread from within the dialog you want to update, pass the hwnd of the dialog as the LPARAM if you use MFC (AfxBeginThread) - then you can use that in your PostMessage. If you don't use MFC, you can pass it as arglist or lpParmeter depending on how you start your thread.

You can use GetSafeHwnd() in your dialog to get the hWnd to pass.

Inside the thread, cast that parameter to an hWnd and you've got it.

Hope that helps.

Karl - WK5M
PP-ASEL-IA (N43CS)
PGP Key: 0xDB02E193
PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193

AnswerRe: howto Post Message Pin
ThatsAlok17-Jul-08 22:13
ThatsAlok17-Jul-08 22:13 
Questionarray 2d search Pin
gordon305616-Jul-08 6:09
gordon305616-Jul-08 6:09 
AnswerRe: array 2d search Pin
Luc Pattyn16-Jul-08 6:29
sitebuilderLuc Pattyn16-Jul-08 6:29 
GeneralRe: array 2d search Pin
gordon305616-Jul-08 6:48
gordon305616-Jul-08 6:48 
AnswerRe: array 2d search Pin
Mark Salsbery16-Jul-08 6:33
Mark Salsbery16-Jul-08 6:33 
GeneralRe: array 2d search Pin
Luc Pattyn16-Jul-08 6:51
sitebuilderLuc Pattyn16-Jul-08 6:51 
GeneralRe: array 2d search Pin
Mark Salsbery16-Jul-08 6:55
Mark Salsbery16-Jul-08 6:55 
GeneralRe: array 2d search Pin
Luc Pattyn16-Jul-08 7:22
sitebuilderLuc Pattyn16-Jul-08 7:22 
GeneralRe: array 2d search Pin
Mark Salsbery16-Jul-08 12:19
Mark Salsbery16-Jul-08 12:19 
GeneralRe: array 2d search Pin
gordon305616-Jul-08 7:00
gordon305616-Jul-08 7:00 
AnswerRe: array 2d search Pin
krmed16-Jul-08 6:57
krmed16-Jul-08 6:57 
AnswerRe: array 2d search Pin
Maximilien16-Jul-08 7:05
Maximilien16-Jul-08 7:05 
GeneralRe: array 2d search Pin
Mark Salsbery16-Jul-08 7:16
Mark Salsbery16-Jul-08 7:16 
AnswerRe: array 2d search Pin
jon_fallon16-Jul-08 15:57
jon_fallon16-Jul-08 15:57 
GeneralRe: array 2d search Pin
gordon305617-Jul-08 4:05
gordon305617-Jul-08 4:05 
Questionhow to Window title bar sliding under the menu bar ,please give me examples or Recommendations Pin
ftbk16-Jul-08 6:07
ftbk16-Jul-08 6:07 
QuestionHow can I use command bars in a CDialog-derived class? Pin
sashoalm16-Jul-08 5:53
sashoalm16-Jul-08 5:53 

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.