Click here to Skip to main content
15,901,853 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Do you know the definition of "overloading"? Pin
spiritualfields25-Sep-03 17:47
spiritualfields25-Sep-03 17:47 
GeneralVC6 vs VC7 Pin
spiritualfields25-Sep-03 16:14
spiritualfields25-Sep-03 16:14 
GeneralRe: VC6 vs VC7 Pin
Joe Woodbury25-Sep-03 18:09
professionalJoe Woodbury25-Sep-03 18:09 
GeneralCalling CWnd::MoveWindow from within OnSize handler - CRASH Pin
Terry O'Nolley25-Sep-03 16:02
Terry O'Nolley25-Sep-03 16:02 
GeneralRe: Calling CWnd::MoveWindow from within OnSize handler - CRASH Pin
Larry J. Siddens25-Sep-03 16:07
Larry J. Siddens25-Sep-03 16:07 
GeneralRe: Calling CWnd::MoveWindow from within OnSize handler - CRASH Pin
Terry O'Nolley25-Sep-03 16:35
Terry O'Nolley25-Sep-03 16:35 
GeneralRe: Calling CWnd::MoveWindow from within OnSize handler - CRASH Pin
Shog925-Sep-03 18:57
sitebuilderShog925-Sep-03 18:57 
GeneralRe: Calling CWnd::MoveWindow from within OnSize handler - CRASH Pin
Terry O'Nolley26-Sep-03 4:11
Terry O'Nolley26-Sep-03 4:11 
I tried calling OnSize()manually from within my OnInitDialog() handler - both before and after CDialog::OnInitDialog() was called with the following:

BOOL CPeriodicTableDlg::OnInitDialog()
{
   CDialog::OnInitDialog();
	
   SetIcon(m_hIcon, TRUE);
   SetIcon(m_hIcon, FALSE);
	
   // Initialize the main pteTable object
   Table.InitGroups();
   Table.InitElements();

   // initialize the color change slider controls
   m_SliderRed.SetRange  (0, 255, TRUE);
   m_SliderGreen.SetRange(0, 255, TRUE);
   m_SliderBlue.SetRange (0, 255, TRUE);

   // select the first item in the groups listbox
   m_GroupList.SetCurSel(0);

   // Change the position of the slider controls to match the colors for the new group
   SetSliderPositions();

   // Change the text next to the sliders
   SetSliderValueText();

   // Get the current Window dimensions and manually call OnSize to position controls
   CRect r;
   GetWindowRect(&r);
   OnSize(SIZE_RESTORED, r.Width(), r.Height()); // Also tried with NULL instead of SIZE_RESTORED
   
   return TRUE;  
}


and the app hangs. No errors, just an endless loop that I have to terminate with the Task Manager.











GeneralRe: Calling CWnd::MoveWindow from within OnSize handler - CRASH Pin
Shog926-Sep-03 4:46
sitebuilderShog926-Sep-03 4:46 
GeneralRe: Calling CWnd::MoveWindow from within OnSize handler - CRASH Pin
Abin25-Sep-03 21:32
Abin25-Sep-03 21:32 
GeneralRe: Calling CWnd::MoveWindow from within OnSize handler - CRASH Pin
FearlessBurner26-Sep-03 0:15
FearlessBurner26-Sep-03 0:15 
Generalfree memory Pin
Sirrius25-Sep-03 15:01
Sirrius25-Sep-03 15:01 
GeneralRe: free memory Pin
Larry J. Siddens25-Sep-03 16:12
Larry J. Siddens25-Sep-03 16:12 
GeneralVisual C++ and Standard C++ Pin
RanBlade25-Sep-03 13:53
RanBlade25-Sep-03 13:53 
GeneralRe: Visual C++ and Standard C++ Pin
Taka Muraoka25-Sep-03 14:09
Taka Muraoka25-Sep-03 14:09 
GeneralRe: Visual C++ and Standard C++ Pin
RanBlade25-Sep-03 14:15
RanBlade25-Sep-03 14:15 
GeneralRe: Visual C++ and Standard C++ Pin
RanBlade25-Sep-03 14:17
RanBlade25-Sep-03 14:17 
GeneralRe: Visual C++ and Standard C++ Pin
Taka Muraoka25-Sep-03 14:31
Taka Muraoka25-Sep-03 14:31 
GeneralRe: Visual C++ and Standard C++ Pin
Joe Woodbury25-Sep-03 18:16
professionalJoe Woodbury25-Sep-03 18:16 
GeneralSimple operation with window minimized... Pin
Anonymous25-Sep-03 13:30
Anonymous25-Sep-03 13:30 
GeneralC and memory help Pin
Sirrius25-Sep-03 12:39
Sirrius25-Sep-03 12:39 
GeneralRe: C and memory help Pin
Larry J. Siddens25-Sep-03 13:03
Larry J. Siddens25-Sep-03 13:03 
GeneralRe: C and memory help Pin
Sirrius25-Sep-03 14:46
Sirrius25-Sep-03 14:46 
GeneralRe: C and memory help Pin
Larry J. Siddens25-Sep-03 15:02
Larry J. Siddens25-Sep-03 15:02 
GeneralID of a child dialog Pin
Antti Keskinen25-Sep-03 11:42
Antti Keskinen25-Sep-03 11:42 

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.