ok i read that if you do SetTextAlign(hdc, TA_RIGHT); the text would become right justified....then why doesnt this work...its under WM_PAINT

Code:
			SetTextAlign(hdc, TA_RIGHT);

			TextOut(hdc, 0, 0, TEXT("0123456789"), 10);
and yes i did declare a handle to device context with hdc = BeginPaint(hwnd, &ps);

....please explain..and help