Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
B

Behzad Ebrahimi

@Behzad Ebrahimi
About
Posts
68
Topics
46
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to detect illegal memory consuming?
    B Behzad Ebrahimi

    I found my problem using Easy Detection of Memory Leaks[^].

    BOOL CSmartToolTip::SetTipText(CWnd *pTipOwnerWnd, CString strTip )
    {
    TOOLINFO ti;

    \_CreateTipWnd();
    
    // Fill tool tip info structure:
    // (Set flags to indicates that the uId member is the window handle
    // to the tool, and to indicate that the ToolTip control should subclass
    // the tool's window to intercept messages.)
    ti.cbSize = sizeof(ti);						// size of this structure
    ti.uFlags = TTF\_IDISHWND | TTF\_SUBCLASS;		// flags
    ti.hwnd = pTipOwnerWnd->GetParent()->GetSafeHwnd();	// handle to the window that contains the tool
    ti.uId = (UINT)pTipOwnerWnd->GetSafeHwnd();			// application-defined identifier of the tool
    ti.hinst = AfxGetResourceHandle();				// handle to the instance that contains the string resource for the tool
    ti.lpszText = (LPTSTR)((LPCTSTR)strTip);						// pointer to the buffer that contains the text for the tool
    
    // Send add tool message and return result:
    //	return CToolTipCtrl::AddTool( pTipOwnerWnd->GetParent(), 1 );
    return((BOOL)SendMessage(TTM\_ADDTOOL, 0, (LPARAM)&ti));
    

    }

    void CSmartToolTip::_CreateTipWnd()
    {
    // We must create its once!
    if( ! IsWindow(*this) )
    {
    // Create ToolTip control
    this->Create( NULL );

    	SetTipBkColor( RGB( 255, 255, 0) );
    	SetTipTextColor( RGB( 0, 0, 0) );
    	
    	// Enable multiline
    	::SendMessage( \*this, TTM\_SETMAXTIPWIDTH, 0, 
    		(LPARAM)(INT) MAKELONG(400, 0));
    }
    

    }

    The problem located in above code. I periodically call above function in my application. But why leak? Can any one help me please?

    C / C++ / MFC c++ database graphics tools performance

  • How to detect illegal memory consuming?
    B Behzad Ebrahimi

    I used a simple access file (.mdb) in local computer. My application became slow after memory consumption!

    C / C++ / MFC c++ database graphics tools performance

  • How to detect illegal memory consuming?
    B Behzad Ebrahimi

    When I minimize my application, it frees some of "Mem Usage". But still it keeps used "VM Size". Also it keeps memory consuming when I restore it or it remains minimized. I still wait for a solution. Thanks.

    C / C++ / MFC c++ database graphics tools performance

  • How to detect illegal memory consuming?
    B Behzad Ebrahimi

    I have a multi-thread MFC application. I used Ado2 moudule by "Carlos Antollini" to act with my database. When I monitor my application by windows TaskManger, I see that "Mem Usage" & "VM Size" of my application is increasing without freeing memory until I close the application. I read most of memory management documents and I could not solve my application problem. Also I test some useful tools like "Trial DeLeaker" to detect problem. But all of memory leak tools report no memory leak! Specialty "DeLeaker" says "no GDI leak", "no Mem Leaks", "no Handle leaks". Please give me tips to find my problem. Can I find my problem by Rational Purify? I have not it. Thanks.

    C / C++ / MFC c++ database graphics tools performance

  • How can I show custom string such as "N/A" in DataGrid instead (null) for null columns?
    B Behzad Ebrahimi

    I found it ...:suss: int nColCount = dataGrid1.DataSource.Tables[0].Columns.Count; int nStyleCount = dataGrid1.TableStyles.Count; for(int nSC= 0; nSC < nStyleCount; nSC++ ) for(int nCol = 0; nCol < nColCount; nCol++ ) { dataGrid1.TableStyles[nSC].GridColumnStyles[nCol].NullText = "N/A"; }

    C# question

  • How can I show custom string such as "N/A" in DataGrid instead (null) for null columns?
    B Behzad Ebrahimi

    How can I show custom string such as "N/A" in DataGrid instead (null) for null columns? My datagrid data will load by a DataSource. Or how can I filter sum record/field when loading fata from DataSource to DataGrid !? Thank you

    C# question

  • How can I handle message of a class that drived from COleControl?
    B Behzad Ebrahimi

    How can I handle message of a class that drived from COleControl? I added some function like WndProc(...), but program does NOT reach them!?

    C / C++ / MFC question

  • function pointer on classfunctions
    B Behzad Ebrahimi

    See Class function callback[^]

    C / C++ / MFC c++ help question

  • GDI/OpenGL or DirectX?
    B Behzad Ebrahimi

    You must serch "Flicker Free" on CP! You will find very staff such as Flicker Free Drawing In MFC[^]

    C / C++ / MFC graphics game-dev question

  • SetWindowRgn() for buttons
    B Behzad Ebrahimi

    Thanks Ryan. You are right.:-O:doh: I always use refrence tag to take my code more readable.:rolleyes:

    C / C++ / MFC question

  • SetWindowRgn() for buttons
    B Behzad Ebrahimi

    For more information see one of stuff on this site such as: http://www.codeproject.com/buttonctrl/cxskinbutton.asp[^] I think you must use SelectClipRgn(...) after SetWindowRgn(...) BeB

    C / C++ / MFC question

  • SetWindowRgn() for buttons
    B Behzad Ebrahimi

    Do NOT conflit refrence and value! In MSDN --> void GetClientRect( LPRECT lpRect ) const; So use m_SearchBtn->GetClientRect(**&the_rect); HRGN region_handle = CreateEllipticRgnIndirect(&**the_rect); ....

    C / C++ / MFC question

  • How can I detect a CODEC was installed? And detect its version.
    B Behzad Ebrahimi

    How can I detect a CODEC(Media Coder-decoder) was installed? And detect its version? Such as "Media Player 9 Series Codec"

    C / C++ / MFC question announcement

  • Hiw can I make "Visual C++ 6 Components"?
    B Behzad Ebrahimi

    I want to make "Visual C++ Components" for VC++ 6. Like: predefined "Pop-up Menu" Thanks

    C / C++ / MFC c++ question

  • Fatal error LNK1103: debugging information corrupt; recompile module
    B Behzad Ebrahimi

    Yes, I deleted Debug and Release folders and *.opt, *.ncb, *.aps and any temporary files. But I have problem still.

    C / C++ / MFC help question c++ sharepoint com

  • Fatal error LNK1103: debugging information corrupt; recompile module
    B Behzad Ebrahimi

    After I installing "SDK WinXP SP2"(Febuary 2003), I got LNK1103 error in VC++6! My OS is WinXP (Without SP). I had seen the following question: Debugging Information Corrupt[^] I can NOT dowload older version (because it is NOT good solution). Can anyone help me?

    C / C++ / MFC help question c++ sharepoint com

  • How can I enable SystemMenu of an skined dialog that disabled its TitleBar?
    B Behzad Ebrahimi

    How can I enable SystemMenu of an skined dialog that disabled its TitleBar? I wnat to use CBkDialogST to skin my MFC Diolog based application by custom Region skin (non rectangular). (SystemMenu apear by right-click on the dilog's taskbar button)

    C / C++ / MFC question c++

  • How can I programmatically install a visual C++ add-in for visual C++?
    B Behzad Ebrahimi

    Hi, I want to create an installshield for my Add-in like WndTabs. http://www.codeproject.com/macro/wndtabs.asp[^] After copying my add-in to "Microsoft Visual Studio\Common\MSDev98\AddIns" folder, what do I?

    C / C++ / MFC c++ question csharp visual-studio com

  • [DLL]: Can I declare a global variable in a DLL?
    B Behzad Ebrahimi

    Can I declare a global variable in a DLL? My variable is a object of Internal class that NOT exported. Also my global object will use internally. My dll is a "Regular DLL with MFC statically linked". Does it cause a problem?

    C / C++ / MFC c++ help question

  • Can I use and load Microsoft Word as ActiveX in my own project!
    B Behzad Ebrahimi

    I want to load Core of Word in a MFC project.

    C / C++ / MFC c++ asp-net com
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups