Multiple Assignments
You can write 'normal' code like this:RECT r; if GetWindowRect( hDlg, &r ): g_iWindowX = r.left; g_iWindowY = r.top; g_iWindowWidth = r.right - r.left g_iWindowHeight = r.bottom - r.topbut you also have the ability to collapse the multiple assignments onto a single line, seperating them on both sides of '=' using commas. The equivalent code would be
RECT r; if GetWindowRect( hDlg, &r ): g_iWindowX, g_iWindowY, g_iWindowWidth, g_iWindowHeight = r.left, r.top, r.right - r.left, r.bottom - r.topor you can split it into two statements:
RECT r; if GetWindowRect( hDlg, &r ): g_iWindowX, g_iWindowY = r.left, r.top g_iWindowWidth, g_iWindowHeight = r.right - r.left, r.bottom - r.top
NEXT: Lists and Hashes

