Click here to Skip to main content
15,900,511 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: EOF Pin
«_Superman_»2-Sep-09 17:24
professional«_Superman_»2-Sep-09 17:24 
GeneralRe: EOF Pin
David Crow3-Sep-09 2:52
David Crow3-Sep-09 2:52 
GeneralRe: EOF Pin
«_Superman_»3-Sep-09 7:09
professional«_Superman_»3-Sep-09 7:09 
QuestionCapture non-client mouse click on sizable window Pin
Darryl Bryk2-Sep-09 10:22
Darryl Bryk2-Sep-09 10:22 
AnswerRe: Capture non-client mouse click on sizable window Pin
«_Superman_»2-Sep-09 17:29
professional«_Superman_»2-Sep-09 17:29 
GeneralRe: Capture non-client mouse click on sizable window Pin
Darryl Bryk3-Sep-09 9:29
Darryl Bryk3-Sep-09 9:29 
GeneralRe: Capture non-client mouse click on sizable window Pin
«_Superman_»3-Sep-09 17:08
professional«_Superman_»3-Sep-09 17:08 
GeneralRe: Capture non-client mouse click on sizable window Pin
Darryl Bryk4-Sep-09 5:26
Darryl Bryk4-Sep-09 5:26 
Yes, I am calling the base class too. See code below:
void CImagrView::OnSize(UINT nType, int cx, int cy)
{
	static bool cap = false;

	ATLTRACE2("*****"__FUNCTION__"\n");
	if (m_resizing && GetKeyState(VK_LBUTTON) && !cap) {
		SetCapture();   // Capture the mouse until button up.
		cap = true;
	}
	CScrollView::OnSize(nType, cx, cy);
}


The call to SetCapture is stopping the frame from being stretched. I put in a static flag to only call SetCapture the first time. Then the frame stretch works again, after you release the mouse, but then the ButtonUp is back to not being detected again.

If I change the window to not have WS_THICKFRAME, then it can detect the NcLButtonDown and Up.
QuestionHow to disable control animation, combobox Pin
Moak2-Sep-09 9:58
Moak2-Sep-09 9:58 
AnswerRe: How to disable control animation, combobox Pin
Code-o-mat2-Sep-09 11:46
Code-o-mat2-Sep-09 11:46 
GeneralRe: How to disable control animation, combobox Pin
Moak2-Sep-09 14:11
Moak2-Sep-09 14:11 
AnswerRe: How to disable control animation, combobox Pin
Randor 2-Sep-09 11:51
professional Randor 2-Sep-09 11:51 
GeneralRe: How to disable control animation, combobox Pin
Moak2-Sep-09 14:02
Moak2-Sep-09 14:02 
GeneralRe: How to disable control animation, combobox Pin
Randor 2-Sep-09 15:00
professional Randor 2-Sep-09 15:00 
GeneralRe: How to disable control animation, combobox Pin
Moak2-Sep-09 15:17
Moak2-Sep-09 15:17 
GeneralRe: How to disable control animation, combobox Pin
Randor 2-Sep-09 15:23
professional Randor 2-Sep-09 15:23 
GeneralRe: How to disable control animation, combobox Pin
Code-o-mat2-Sep-09 20:34
Code-o-mat2-Sep-09 20:34 
QuestionHow to dispatch WM_LBUTTONDOWN message after calling ReleaseCapture()? Pin
includeh102-Sep-09 8:48
includeh102-Sep-09 8:48 
AnswerRe: How to dispatch WM_LBUTTONDOWN message after calling ReleaseCapture()? Pin
Stuart Dootson2-Sep-09 9:07
professionalStuart Dootson2-Sep-09 9:07 
GeneralRe: How to dispatch WM_LBUTTONDOWN message after calling ReleaseCapture()? Pin
includeh103-Sep-09 7:45
includeh103-Sep-09 7:45 
Questionchar char[] variables help Pin
egerving2-Sep-09 8:26
egerving2-Sep-09 8:26 
AnswerRe: char char[] variables help Pin
Iain Clarke, Warrior Programmer2-Sep-09 8:47
Iain Clarke, Warrior Programmer2-Sep-09 8:47 
AnswerRe: char char[] variables help Pin
Stuart Dootson2-Sep-09 9:01
professionalStuart Dootson2-Sep-09 9:01 
AnswerRe: char char[] variables help Pin
Randor 2-Sep-09 9:09
professional Randor 2-Sep-09 9:09 
AnswerRe: char char[] variables help Pin
David Crow2-Sep-09 9:50
David Crow2-Sep-09 9:50 

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.