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

C / C++ / MFC

 
QuestionHaving trouble with c++ templates Pin
BobInNJ21-Sep-15 12:48
BobInNJ21-Sep-15 12:48 
AnswerRe: Having trouble with c++ templates Pin
CPallini21-Sep-15 21:45
mveCPallini21-Sep-15 21:45 
QuestionCalling GDI+ DrawImage function throws _BLOCK_TYPE_IS_VALID error Pin
Kiran Satish21-Sep-15 7:39
Kiran Satish21-Sep-15 7:39 
AnswerRe: Calling GDI+ DrawImage function throws _BLOCK_TYPE_IS_VALID error Pin
CPallini21-Sep-15 21:50
mveCPallini21-Sep-15 21:50 
GeneralRe: Calling GDI+ DrawImage function throws _BLOCK_TYPE_IS_VALID error Pin
Jochen Arndt21-Sep-15 21:54
professionalJochen Arndt21-Sep-15 21:54 
GeneralRe: Calling GDI+ DrawImage function throws _BLOCK_TYPE_IS_VALID error Pin
CPallini21-Sep-15 22:01
mveCPallini21-Sep-15 22:01 
GeneralRe: Calling GDI+ DrawImage function throws _BLOCK_TYPE_IS_VALID error Pin
Jochen Arndt21-Sep-15 22:14
professionalJochen Arndt21-Sep-15 22:14 
QuestionShift + VK_LEFT Pin
_Flaviu20-Sep-15 21:44
_Flaviu20-Sep-15 21: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 22:19
professionalJochen Arndt20-Sep-15 22:19 
GeneralRe: Shift + VK_LEFT Pin
_Flaviu20-Sep-15 22:24
_Flaviu20-Sep-15 22:24 
GeneralRe: Shift + VK_LEFT Pin
_Flaviu20-Sep-15 22:39
_Flaviu20-Sep-15 22:39 
GeneralRe: Shift + VK_LEFT Pin
Jochen Arndt20-Sep-15 22:51
professionalJochen Arndt20-Sep-15 22:51 
GeneralRe: Shift + VK_LEFT Pin
_Flaviu20-Sep-15 23:04
_Flaviu20-Sep-15 23:04 
GeneralRe: Shift + VK_LEFT Pin
Jochen Arndt20-Sep-15 23:14
professionalJochen Arndt20-Sep-15 23:14 
GeneralRe: Shift + VK_LEFT Pin
_Flaviu20-Sep-15 23:14
_Flaviu20-Sep-15 23:14 
GeneralRe: Shift + VK_LEFT Pin
Jochen Arndt20-Sep-15 23:21
professionalJochen Arndt20-Sep-15 23:21 
GeneralRe: Shift + VK_LEFT Pin
_Flaviu20-Sep-15 23:23
_Flaviu20-Sep-15 23:23 
GeneralRe: Shift + VK_LEFT Pin
_Flaviu21-Sep-15 22:13
_Flaviu21-Sep-15 22:13 
AnswerRe: Shift + VK_LEFT Pin
Richard MacCutchan20-Sep-15 22:32
mveRichard MacCutchan20-Sep-15 22:32 
GeneralRe: Shift + VK_LEFT Pin
_Flaviu20-Sep-15 22:53
_Flaviu20-Sep-15 22:53 
GeneralRe: Shift + VK_LEFT Pin
Richard MacCutchan20-Sep-15 23:05
mveRichard MacCutchan20-Sep-15 23:05 
GeneralRe: Shift + VK_LEFT Pin
_Flaviu20-Sep-15 23:15
_Flaviu20-Sep-15 23:15 
Question[SOLVED?] Using "this" pointer to "copy" pointer Pin
Vaclav_19-Sep-15 17:11
Vaclav_19-Sep-15 17:11 
AnswerRe: Using "this" pointer to "copy" pointer Pin
Richard MacCutchan19-Sep-15 21:10
mveRichard MacCutchan19-Sep-15 21:10 
GeneralRe: Using "this" pointer to "copy" pointer Pin
Vaclav_20-Sep-15 3:02
Vaclav_20-Sep-15 3: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.