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
and yes i did declare a handle to device context with hdc = BeginPaint(hwnd, &ps);Code:SetTextAlign(hdc, TA_RIGHT); TextOut(hdc, 0, 0, TEXT("0123456789"), 10);
....please explain..and help