Title is No Title

not very good here!

导航

上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 13 下一页

2004年3月30日 #

print a bmp is simple ,but the principle is not easy to understand!.

摘要: 1:打印的图片太小; 2:根本打印不出来位图 3:打印预览可见、但打印不出来; 产生这些问题的根本原因,在于对位图的理解不够深刻。 一个CBitmap对象,可能是DDB位图(设备相关位图),或者DIB位图(设备无关位图),其中,一个设备兼容的内存DC中,只能选择该设备兼容的DDB位图或者单色的位图。注意,位图只能被选择进入到设备兼容的内存D... 阅读全文

posted @ 2004-03-30 20:23 abraham 阅读(930) 评论(2) 推荐(0)

print a dialog is simple.

摘要: 1:add friend in view class;2:add CDC and CBitmap and onPrint() and ..some func,3:and then at dlg's OnOk or other func call OnPriviewFunction is ok!1:public://add for print form CRect m_rect; CBitmap *... 阅读全文

posted @ 2004-03-30 18:57 abraham 阅读(1032) 评论(2) 推荐(0)

add cool toolbar 256corler is easy,only two file and onCreate func is needed also the MainFrame.toolbar must resize to what real need and also the load width is same to it.

摘要: 1:func use it:int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct){ if (CFrameWnd::OnCreate(lpCreateStruct) == -1) return -1; if (!m_wndToolBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE ... 阅读全文

posted @ 2004-03-30 12:51 abraham 阅读(1400) 评论(0) 推荐(0)

2004年3月29日 #

how to delte minimize and max button in right upper!

摘要: BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs){ cs.style &= ~(WS_MINIMIZEBOX|WS_MAXIMIZEBOX); //cs.style|=WS_MAXIMIZEBOX; if( !CFrameWnd::PreCreateWindow(cs) ) return FALSE; // TODO: Modify th... 阅读全文

posted @ 2004-03-29 16:52 abraham 阅读(553) 评论(1) 推荐(0)

上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 13 下一页