Click here to Skip to main content
15,889,867 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: In Visual Studio 2008 I try to Go To Dialog and get "The operation could not be completed. Access is denied." Pin
ara206014-May-10 14:42
ara206014-May-10 14:42 
QuestionVIsual Studio Debugger Yellow arrow cursor/control ??? Pin
ForNow13-May-10 14:45
ForNow13-May-10 14:45 
AnswerRe: VIsual Studio Debugger Yellow arrow cursor/control ??? Pin
hdxu13-May-10 16:21
hdxu13-May-10 16:21 
AnswerRe: VIsual Studio Debugger Yellow arrow cursor/control ??? Pin
hdxu13-May-10 16:28
hdxu13-May-10 16:28 
GeneralRe: VIsual Studio Debugger Yellow arrow cursor/control ??? Pin
ForNow13-May-10 16:34
ForNow13-May-10 16:34 
GeneralRe: VIsual Studio Debugger Yellow arrow cursor/control ??? Pin
Madhu Nair13-May-10 19:02
Madhu Nair13-May-10 19:02 
GeneralRe: VIsual Studio Debugger Yellow arrow cursor/control ??? Pin
ForNow13-May-10 20:17
ForNow13-May-10 20:17 
QuestionWindow Resizing!? / Win32 Pin
Fareed Rizkalla13-May-10 12:42
Fareed Rizkalla13-May-10 12:42 
case WM_SIZE:
{
	wchar_t Width[5];
	wchar_t Height[5];

	_ltow_s((WCA.right-WCA.left), Width, 5, 10);
	_ltow_s((WCA.bottom-WCA.top), Height, 5, 10);

	if (RegDeleteKeyValue(HKEY_CURRENT_USER, RegistrySubKey, L"Width") == ERROR_SUCCESS)
		RegSetKeyValue(HKEY_CURRENT_USER, RegistrySubKey, L"Width", REG_SZ, Width, wcslen(Width)*2);
	if (RegDeleteKeyValue(HKEY_CURRENT_USER, RegistrySubKey, L"Height") == ERROR_SUCCESS)
		RegSetKeyValue(HKEY_CURRENT_USER, RegistrySubKey, L"Height", REG_SZ, Height, wcslen(Height)*2);
return 0;
}

case WM_MOVE:
{
	wchar_t Left[5];
	wchar_t Top[5];
				
	if ((int)(short)LOWORD(lParam) > 0)
		_ltow_s((int)(short)LOWORD(lParam), Left, 5, 10);
	if ((int)(short)HIWORD(lParam) > 0)
		_ltow_s((int)(short)HIWORD(lParam), Top, 5, 10);

	if (RegDeleteKeyValue(HKEY_CURRENT_USER, RegistrySubKey, L"Left") == ERROR_SUCCESS)
		RegSetKeyValue(HKEY_CURRENT_USER, RegistrySubKey, L"Left", REG_SZ, Left, wcslen(Left)*2);
	if (RegDeleteKeyValue(HKEY_CURRENT_USER, RegistrySubKey, L"Top") == ERROR_SUCCESS)
		RegSetKeyValue(HKEY_CURRENT_USER, RegistrySubKey, L"Top", REG_SZ, Top, wcslen(Top)*2);
return 0;
}


I'm using these 2 events to record my window position and size. However by running and closing my app and running it again, without changing any of the dimensions. It is just affected by running and closing! Unsure | :~

Changing size on it's own!
AnswerRe: Window Resizing!? / Win32 Pin
Stephen Hewitt13-May-10 14:01
Stephen Hewitt13-May-10 14:01 
GeneralRe: Window Resizing!? / Win32 Pin
Fareed Rizkalla13-May-10 15:45
Fareed Rizkalla13-May-10 15:45 
GeneralRe: Window Resizing!? / Win32 Pin
Stephen Hewitt13-May-10 15:51
Stephen Hewitt13-May-10 15:51 
GeneralRe: Window Resizing!? / Win32 Pin
Fareed Rizkalla13-May-10 16:09
Fareed Rizkalla13-May-10 16:09 
AnswerRe: Window Resizing!? / Win32 Pin
Stephen Hewitt13-May-10 16:54
Stephen Hewitt13-May-10 16:54 
AnswerRe: Window Resizing!? / Win32 Pin
norish13-May-10 19:45
norish13-May-10 19:45 
AnswerRe: Window Resizing!? / Win32 Pin
David Crow14-May-10 8:12
David Crow14-May-10 8:12 
QuestionAsyncrhonous Multiple Processes [modified] Pin
Orion Star13-May-10 10:27
Orion Star13-May-10 10:27 
AnswerRe: Asyncrhonous Multiple Processes Pin
Stephen Hewitt13-May-10 14:08
Stephen Hewitt13-May-10 14:08 
GeneralRe: Asyncrhonous Multiple Processes Pin
Orion Star13-May-10 15:37
Orion Star13-May-10 15:37 
AnswerRe: Asyncrhonous Multiple Processes Pin
Stuart Dootson13-May-10 15:37
professionalStuart Dootson13-May-10 15:37 
GeneralRe: Asyncrhonous Multiple Processes Pin
Orion Star13-May-10 15:44
Orion Star13-May-10 15:44 
QuestionHow to write to file in little-endian or big-endian Pin
Danzy8313-May-10 9:38
Danzy8313-May-10 9:38 
AnswerRe: How to write to file in little-endian or big-endian Pin
«_Superman_»13-May-10 10:42
professional«_Superman_»13-May-10 10:42 
AnswerRe: How to write to file in little-endian or big-endian Pin
Chris Losinger13-May-10 16:24
professionalChris Losinger13-May-10 16:24 
QuestionNotify to all dialogs in my program Pin
manchukuo13-May-10 6:40
manchukuo13-May-10 6:40 
AnswerRe: Notify to all dialogs in my program Pin
Maximilien13-May-10 7:23
Maximilien13-May-10 7:23 

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.