Simple just paint over it! Have a look here... http://www.codeproject.com/combobox/combobox\_flatcombo.asp HTH Jerry
Jeremy Davis
Posts
-
Help with colors in MFC, damn I'm bad at painting :) -
Face Recognition Software?Anyone know of any good face recogition software? I've got two bitmaps, and I'd like to compare them to see if they are the same person.
-
Open Source Form Editor...I did a VERY limited one not long ago. Would you like the source to work on? I did not develop it further as I only needed limited functionality to fit into my main app.
-
Help with colors in MFC, damn I'm bad at painting :)Try http://www.codeproject.com/miscctrl/cfctrl.asp Not exactly what you want, but you could work from here... HTH Jerry
-
HOWTO: Find theGreat, thanks!
-
HOWTO: Find theAnyone know how I can find what the path name for "My Documents" is? For the windows and windows/system directory I can use GetWindowsdirectory etc, but what about the "My Documents" directory. Thanks for any help at all. Jerry
-
Is it possible to stretch a bitmap to the size of a CStatic?(1) Create a CStatic frame NOT bitmap, but invisible. (2) Get Chris Maunder's CDIBSectionLite class to draw the bitmap. (3) Find the size of your CStatic, and using CDIBSectionLite::Stretch draw the stretched bitmap. HTH Jerry
-
Zip/Unzip classTry having another look at ZLib. It's not that difficult. t has some examples, one of which I think is in pure C++. There are other examples such as an ActiveX version. Jerry
-
Zip/Unzip classTry having another look at ZLib. It's not that difficult. It has some examples, one of which I think is in pure C++. There are other examples such as an ActiveX version. Jerry
-
Zip/Unzip classI realise that you don't want to use MFC but there is an MFC class on this site. This may be a start for you. Otherwise try the ZLib library avaiable from all over the place. HTH Jerry
-
How do you use the CToolTipCtrl?Create a member function in your head file... CToolTipCtrl m_ToolTips; then..... BOOL CJVFAccessDlg::PreTranslateMessage(MSG* pMsg) { // TODO: Add your specialized code here and/or call the base class switch(pMsg->message) { case WM_LBUTTONDOWN: case WM_LBUTTONUP: case WM_MOUSEMOVE: m_ToolTips.RelayEvent(pMsg); } return cdxCSizingDialog::PreTranslateMessage(pMsg); } BOOL CJVFAccessDlg::OnInitDialog() { m_ToolTips.Create(this); m_ToolTips.SetDelayTime(200); m_ToolTips.SetDelayTime(TTDT_AUTOPOP, 50000); m_ToolTips.SetMaxTipWidth(200); m_ToolTips.AddTool(GetDlgItem(IDD_REPORTS), winmesgs[7]); m_ToolTips.AddTool(GetDlgItem(IDD_PERSONNEL), winmesgs[8]); : : etc etc etc return TRUE; }
-
CListCtrl with CProgressCtrl as an item? (like Napster has done it)Simple. Don't use a CListCtrl. Use Chris Maunder's CGridCtrl and sub-class one of the cells as a CProgressCtrl. HTH Jerry
-
HOWTO: Find Height of stacked tabs in CPropertySheetI have a CPropertySheet with stacked tabs. How can I find the total height of the stacked tabs. I add / remove various tabs in realtime, so the height will change!] Thanks to anyone that can help! :-)
-
Spell CheckingoYou could automate Microsoft Word. Look in MSDN somewhere I think.....
-
Visual Studio and IntellisenseOne of the things you either love or hate about VS6 and VC6 is the the "member" list that appears after you've typed "->" or "." after a class or structure name. When I add members to classes of mine, they are accordingly listed after I type the class name. However I have a header file will lots of structure definitions in a directory different to the main app / source code. If I modify one of these structures, the changes don't seem to be listed when I next type the structure name. Any ideas why, or what I'm doing wrong please? Thanks
-
Win2000 Style Open Dialog in Win98?I've just had the comment "If Word2000 can display the new style file open dialogs in Win98 why can't you?". Well I'm not Microsoft! Anyone got any ideas though?
-
Webbrowser scrollingHave a look here.... http://www.codeproject.com/miscctrl/usemshtml.asp This file should do it, otherwise email me.
-
Outlook Express/IE Address BookTry looking on CodeGuru
-
Printing Dialog BoxBest thing to do is a screen grab. void CMachine::PrintWindow() { // show options CMyPrintDialog PrintDlg( FALSE, PD_ALLPAGES | PD_USEDEVMODECOPIES | PD_NOPAGENUMS | PD_NOSELECTION | PD_DISABLEPRINTTOFILE, this); int Response = 0; Response = PrintDlg.DoModal(); if (Response == IDOK) { // get printer dc HDC hPrinterDC =(HDC) 0; hPrinterDC = PrintDlg.m_pd.hDC; ASSERT(hPrinterDC != NULL); CDC PrinterDC; BOOL IsAttached = FALSE; IsAttached = PrinterDC.Attach(hPrinterDC); ASSERT(IsAttached); // Set landscape LPDEVMODE pDevMode = PrintDlg.GetDevMode(); pDevMode->dmFields |= DM_ORIENTATION; pDevMode->dmOrientation = DMORIENT_LANDSCAPE; PrinterDC.ResetDC(pDevMode); // attempt to set abort procedure int SetAbortProcStatus = 0; // SetAbortProcStatus = PrinterDC.SetAbortProc( &AbortProc ); // attempt to start print job DOCINFO DocInfo; DocInfo.cbSize = sizeof(DOCINFO); DocInfo.lpszOutput = NULL; DocInfo.lpszDocName = "PDMW Windows Screen Print"; int StartDocStatus = 0; StartDocStatus = PrinterDC.StartDoc(&DocInfo); // if abort procedure set and print job started if (SetAbortProcStatus >= 0 && StartDocStatus >= 0) { // start page VERIFY(PrinterDC.StartPage() > 0); // get the screen dc HDC hScreenDC =(HDC) 0; hScreenDC = ::GetDC(NULL);// CDC ASSERT(hScreenDC != NULL); CDC ScreenDC; VERIFY(ScreenDC.Attach(hScreenDC)); // create screen device dependent (dd) bitmap CRect tmp; GetWindowRect(tmp); // ClientToScreen(tmp); // tmp.top -= ::GetSystemMetrics(SM_CYCAPTION); int ScreenWidth = tmp.Width();// - ::GetSystemMetrics(SM_CXEDGE) * 4;// 0; // ScreenWidth = ScreenDC.GetDeviceCaps( HORZRES ); int ScreenHeight = tmp.Height();// + ::GetSystemMetrics(SM_CYCAPTION);// - ::GetSystemMetrics(SM_CYEDGE) * 4; //- ::GetSystemMetrics(SM_CYCAPTION);// 0; // ScreenHeight = ScreenDC.GetDeviceCaps( VERTRES ); CBitmap ScreenBitmap; VERIFY(ScreenBitmap.CreateCompatibleBitmap( &ScreenDC, ScreenWidth, ScreenHeight )); // copy image to screen dd bitmap CDC MemDC; VERIFY(MemDC.CreateCompatibleDC(&ScreenDC)); CBitmap* pOldBitmap = NULL; pOldBitmap = MemDC.SelectObject(&ScreenBitmap); ASSERT(pOldBitmap != NULL); VERIFY(MemDC.BitBlt( 0, 0, ScreenWidth, ScreenHeight, &ScreenDC,
-
How to play some AVI-Files ?Ahh you're making the same mistake I did!! :-) DirectShow is NOT part of the DirectX toolkit. MS for some unknown reason decided to move it to the DirectX Media SDK which is spearate! I only learn't this after a 128M download! I does actually say this on the web site, but it is not very clear at all. (Us lot over here in England put it download to our lack of ability to read American!) Anyway why use DirectX? Try a CAnimateCtrl....