Hi.. Try using manifest file
ashwin20
Posts
-
radio buttons and check boxes in vc++ -
Minimizing a dialog box:)Hi Mandira, I was working around your problem. I have tried doing it using WM_SIZE message..but am not able to get the exact results. then i tried doing it using MoveWindow function void CMinMaxDlgDlg::OnButtonMaximize() { // TODO: Add your control notification handler code here MAX CRect rect; CWnd* pWnd = GetDesktopWindow(); pWnd->GetClientRect(rect); MoveWindow(0,0,rect.Width(), rect.Height(),TRUE); } this code will make ur dialog box size same as that of desktop window now if u want to restore it to the original state then u will have to store the original length, width and start x and y coordinates of dialog box. thn handle it in OnButtonResize() function likt this OnButtonResize() { MoveWindow(startx, starty , initialwidth, initialHeight, TRUE); } but am not able to minize it completely Let me know if this helps you ! Ashwin
-
help on redraw CView ?i just tried this code..i didnt put any of WM_PAINT or WM_ERASEBKGROUD but still it works fine ///////////////////////////////////////////////////////////////////////////// // CTesttestdeleteView drawing void CTesttestdeleteView::OnDraw(CDC* pDC) { TesttestdeleteDoc* pDoc = GetDocument(); ASSERT_VALID(pDoc); // TODO: add draw code for native data here CBitmap bitmap; bitmap.LoadBitmap(IDB_BITMAP1); CDC memDc; memDc.CreateCompatibleDC(pDC); memDc.SelectObject(&bitmap); pDC->BitBlt(10,10,50,50,&memDc,0,0,SRCCOPY); } ths workd absolutely fine :)
-
help on redraw CView ?Try using Invalidate(TRUE); Ash
-
Rotating a MetaFileHi All, i am developing an applicarion in which a user can select any drawing entity and can translate it to any positin he wants.. I am using meta files for doing this.. i know how to translate it on the context.. but can anyone suggest me any method or procedure with which i can rotate it?? Can u suggest any link to page which illustrate this?? Ashwin