Click here to Skip to main content
15,792,841 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHaving trouble with c++ templates Pin
BobInNJ21-Sep-15 13:48
BobInNJ21-Sep-15 13:48 
AnswerRe: Having trouble with c++ templates Pin
CPallini21-Sep-15 22:45
mveCPallini21-Sep-15 22:45 
QuestionCalling GDI+ DrawImage function throws _BLOCK_TYPE_IS_VALID error Pin
Kiran Satish21-Sep-15 8:39
Kiran Satish21-Sep-15 8:39 
AnswerRe: Calling GDI+ DrawImage function throws _BLOCK_TYPE_IS_VALID error Pin
CPallini21-Sep-15 22:50
mveCPallini21-Sep-15 22:50 
GeneralRe: Calling GDI+ DrawImage function throws _BLOCK_TYPE_IS_VALID error Pin
Jochen Arndt21-Sep-15 22:54
professionalJochen Arndt21-Sep-15 22:54 
GeneralRe: Calling GDI+ DrawImage function throws _BLOCK_TYPE_IS_VALID error Pin
CPallini21-Sep-15 23:01
mveCPallini21-Sep-15 23:01 
GeneralRe: Calling GDI+ DrawImage function throws _BLOCK_TYPE_IS_VALID error Pin
Jochen Arndt21-Sep-15 23:14
professionalJochen Arndt21-Sep-15 23:14 
QuestionShift + VK_LEFT Pin
_Flaviu20-Sep-15 22:44
_Flaviu20-Sep-15 22:44 
Is there any possibility to catch shift + left key without mess up PreTranslateMessage ? I have tried this:
C++
void CGridCtrlExt::OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags) 
{
	// TODO: Add your message handler code here and/or call default

	if(VK_LEFT == nChar || VK_RIGHT == nChar)
		TRACE1(">>>%d", nChar);

	CGridCtrl::OnKeyDown(nChar, nRepCnt, nFlags);
}

I see TRACE message ... but when I wrote:
C++
void CGridCtrlExt::OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags) 
{
	// TODO: Add your message handler code here and/or call default

	if((VK_LEFT == nChar || VK_RIGHT == nChar) && GetKeyState(VK_SHIFT) < 0)
		TRACE1(">>>%d", nChar);

	CGridCtrl::OnKeyDown(nChar, nRepCnt, nFlags);
}

I saw nothing ... can you help me out, please ? Thank you.
AnswerRe: Shift + VK_LEFT Pin
Jochen Arndt20-Sep-15 23:19
professionalJochen Arndt20-Sep-15 23:19 
GeneralRe: Shift + VK_LEFT Pin
_Flaviu20-Sep-15 23:24
_Flaviu20-Sep-15 23:24 
GeneralRe: Shift + VK_LEFT Pin
_Flaviu20-Sep-15 23:39
_Flaviu20-Sep-15 23:39 
GeneralRe: Shift + VK_LEFT Pin
Jochen Arndt20-Sep-15 23:51
professionalJochen Arndt20-Sep-15 23:51 
GeneralRe: Shift + VK_LEFT Pin
_Flaviu21-Sep-15 0:04
_Flaviu21-Sep-15 0:04 
GeneralRe: Shift + VK_LEFT Pin
Jochen Arndt21-Sep-15 0:14
professionalJochen Arndt21-Sep-15 0:14 
GeneralRe: Shift + VK_LEFT Pin
_Flaviu21-Sep-15 0:14
_Flaviu21-Sep-15 0:14 
GeneralRe: Shift + VK_LEFT Pin
Jochen Arndt21-Sep-15 0:21
professionalJochen Arndt21-Sep-15 0:21 
GeneralRe: Shift + VK_LEFT Pin
_Flaviu21-Sep-15 0:23
_Flaviu21-Sep-15 0:23 
GeneralRe: Shift + VK_LEFT Pin
_Flaviu21-Sep-15 23:13
_Flaviu21-Sep-15 23:13 
AnswerRe: Shift + VK_LEFT Pin
Richard MacCutchan20-Sep-15 23:32
mveRichard MacCutchan20-Sep-15 23:32 
GeneralRe: Shift + VK_LEFT Pin
_Flaviu20-Sep-15 23:53
_Flaviu20-Sep-15 23:53 
GeneralRe: Shift + VK_LEFT Pin
Richard MacCutchan21-Sep-15 0:05
mveRichard MacCutchan21-Sep-15 0:05 
GeneralRe: Shift + VK_LEFT Pin
_Flaviu21-Sep-15 0:15
_Flaviu21-Sep-15 0:15 
Question[SOLVED?] Using "this" pointer to "copy" pointer Pin
Vaclav_19-Sep-15 18:11
Vaclav_19-Sep-15 18:11 
AnswerRe: Using "this" pointer to "copy" pointer Pin
Richard MacCutchan19-Sep-15 22:10
mveRichard MacCutchan19-Sep-15 22:10 
GeneralRe: Using "this" pointer to "copy" pointer Pin
Vaclav_20-Sep-15 4:02
Vaclav_20-Sep-15 4:02 

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.