Click here to Skip to main content
15,887,027 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CListBox Pin
Cedric Moonen26-Mar-09 21:48
Cedric Moonen26-Mar-09 21:48 
GeneralRe: CListBox Pin
Cedric Moonen26-Mar-09 22:01
Cedric Moonen26-Mar-09 22:01 
GeneralRe: CListBox Pin
Davitor26-Mar-09 22:19
Davitor26-Mar-09 22:19 
GeneralRe: CListBox Pin
Cedric Moonen26-Mar-09 22:28
Cedric Moonen26-Mar-09 22:28 
GeneralRe: CListBox Pin
Davitor26-Mar-09 23:03
Davitor26-Mar-09 23:03 
GeneralRe: CListBox Pin
Cedric Moonen26-Mar-09 23:13
Cedric Moonen26-Mar-09 23:13 
GeneralRe: CListBox [modified] Pin
Davitor26-Mar-09 23:19
Davitor26-Mar-09 23:19 
GeneralRe: CListBox Pin
CPallini26-Mar-09 23:56
mveCPallini26-Mar-09 23:56 
The worker thread shouldn't directly manipulate the GUI. It should instead post a message to the GUI thread, with in turns updates the GUI. It's not difficult, instead of calling InsertString from within the thread, call PostMessage with appropriate data. On receiving the message, the GUI thread will call InsertString.
Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

GeneralRe: CListBox Pin
Cedric Moonen27-Mar-09 0:23
Cedric Moonen27-Mar-09 0:23 
GeneralRe: CListBox Pin
Davitor27-Mar-09 22:06
Davitor27-Mar-09 22:06 
GeneralRe: CListBox Pin
Christian Graus27-Mar-09 0:01
protectorChristian Graus27-Mar-09 0:01 
GeneralRe: CListBox Pin
CPallini27-Mar-09 0:38
mveCPallini27-Mar-09 0:38 
QuestionRe: CListBox Pin
CPallini26-Mar-09 22:35
mveCPallini26-Mar-09 22:35 
GeneralRe: CListBox Pin
Sophiya Chen26-Mar-09 22:26
Sophiya Chen26-Mar-09 22:26 
QuestionUrgent: How to ignore any other input except keyboard in an application [modified] Pin
Rakesh Pahwa26-Mar-09 19:32
Rakesh Pahwa26-Mar-09 19:32 
AnswerRe: Urgent: How to ignore any other input except keyboard in an application Pin
David Crow27-Mar-09 3:20
David Crow27-Mar-09 3:20 
Question[Message Deleted] Pin
Purish Dwivedi26-Mar-09 19:18
Purish Dwivedi26-Mar-09 19:18 
AnswerRe: URGENT ::: detecting language pack Pin
_AnsHUMAN_ 26-Mar-09 19:29
_AnsHUMAN_ 26-Mar-09 19:29 
AnswerRe: URGENT ::: detecting language pack Pin
CPallini26-Mar-09 21:48
mveCPallini26-Mar-09 21:48 
GeneralRe: URGENT ::: detecting language pack Pin
Cedric Moonen26-Mar-09 21:49
Cedric Moonen26-Mar-09 21:49 
General[Message Deleted] Pin
Purish Dwivedi26-Mar-09 22:38
Purish Dwivedi26-Mar-09 22:38 
GeneralRe: URGENT ::: detecting language pack Pin
CPallini26-Mar-09 22:45
mveCPallini26-Mar-09 22:45 
AnswerRe: URGENT ::: detecting language pack Pin
Michael Schubert26-Mar-09 23:45
Michael Schubert26-Mar-09 23:45 
Questionsocket programing in c++ Pin
hunnyyogi26-Mar-09 18:52
hunnyyogi26-Mar-09 18:52 
AnswerRe: socket programing in c++ Pin
_AnsHUMAN_ 26-Mar-09 19:26
_AnsHUMAN_ 26-Mar-09 19:26 

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.