Click here to Skip to main content
15,501,747 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How can I set a string to an item of the ListCtrl(CListCtrl) as muti-line Pin
Richard Andrew x6426-Feb-12 15:24
professionalRichard Andrew x6426-Feb-12 15:24 
QuestionRe: How can I set a string to an item of the ListCtrl(CListCtrl) as muti-line Pin
David Crow27-Feb-12 4:00
MemberDavid Crow27-Feb-12 4:00 
AnswerRe: How can I set a string to an item of the ListCtrl(CListCtrl) as muti-line Pin
Joneeky6-Mar-12 15:49
MemberJoneeky6-Mar-12 15:49 
QuestionHow to move a treeitem with its child? Pin
Le@rner25-Feb-12 2:05
MemberLe@rner25-Feb-12 2:05 
AnswerRe: How to move a treeitem with its child? Pin
«_Superman_»25-Feb-12 16:35
professional«_Superman_»25-Feb-12 16:35 
QuestionHow to defense attack of the WSAAsyncSelect TCP Server ? Pin
wangningyu24-Feb-12 8:01
Memberwangningyu24-Feb-12 8:01 
AnswerRe: How to defense attack of the WSAAsyncSelect TCP Server ? Pin
Randor 24-Feb-12 11:21
professional Randor 24-Feb-12 11:21 
QuestionPreTranslateMessage problem? :( Pin
bosfan24-Feb-12 3:47
Memberbosfan24-Feb-12 3:47 
Hi
i need some help in my work with PreTranslateMessage.
PreTranslateMessage dont work if my worker thread is runnin? I kant catch keyevents if i want to copy and paste from my CListCtrl with ctrl + c :
<br />
// sample with mousewheel:<br />
BOOL CMyDialog::PreTranslateMessage(MSG* pMsg )<br />
{<br />
	UINT uMsg = pMsg->message;<br />
<br />
	if(uMsg == WM_MOUSEWHEEL)<br />
	{<br />
// do something<br />
	}<br />
return CDialog::PreTranslateMessage(pMsg);<br />
}<br />


When the workerthread ist stoped PreTranslateMessage works fine and i can cach keyboard input.
What is wrong with my code??

Best regards
bosfan
AnswerRe: PreTranslateMessage problem? :( Pin
Jochen Arndt24-Feb-12 4:14
professionalJochen Arndt24-Feb-12 4:14 
GeneralRe: PreTranslateMessage problem? :( Pin
bosfan24-Feb-12 4:25
Memberbosfan24-Feb-12 4:25 
GeneralRe: PreTranslateMessage problem? :( Pin
David Crow24-Feb-12 5:05
MemberDavid Crow24-Feb-12 5:05 
GeneralRe: PreTranslateMessage problem? :( Pin
bosfan24-Feb-12 5:33
Memberbosfan24-Feb-12 5:33 
GeneralRe: PreTranslateMessage problem? :( Pin
Jochen Arndt24-Feb-12 6:10
professionalJochen Arndt24-Feb-12 6:10 
GeneralRe: PreTranslateMessage problem? :( Pin
bosfan24-Feb-12 6:25
Memberbosfan24-Feb-12 6:25 
AnswerRe: PreTranslateMessage problem? :( Pin
Member 843817224-Feb-12 5:51
MemberMember 843817224-Feb-12 5:51 
GeneralRe: PreTranslateMessage problem? :( Pin
bosfan24-Feb-12 6:20
Memberbosfan24-Feb-12 6:20 
AnswerRe: PreTranslateMessage problem? :( Pin
Randor 24-Feb-12 11:12
professional Randor 24-Feb-12 11:12 
AnswerRe: PreTranslateMessage problem? :( Pin
JackDingler24-Feb-12 11:56
MemberJackDingler24-Feb-12 11:56 
QuestionHow to fix compile error error C2535 Pin
KASR124-Feb-12 1:06
MemberKASR124-Feb-12 1:06 
AnswerRe: How to fix compile error error C2535 Pin
Code-o-mat24-Feb-12 23:50
MemberCode-o-mat24-Feb-12 23:50 
QuestionHow to create toolbar on the dialog. Pin
appollosputnik24-Feb-12 0:11
Memberappollosputnik24-Feb-12 0:11 
AnswerRe: How to create toolbar on the dialog. Pin
_AnsHUMAN_ 24-Feb-12 2:24
Member_AnsHUMAN_ 24-Feb-12 2:24 
QuestionRe: How to create toolbar on the dialog. Pin
David Crow24-Feb-12 4:15
MemberDavid Crow24-Feb-12 4:15 
QuestionOnTimer function is killed automatically when the dialog is closed Pin
shanmugarajaa23-Feb-12 22:50
Membershanmugarajaa23-Feb-12 22:50 
AnswerRe: OnTimer function is killed automatically when the dialog is closed Pin
Jochen Arndt23-Feb-12 23:21
professionalJochen Arndt23-Feb-12 23:21 

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.