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
S

Sandra

@Sandra
About
Posts
4
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to create MS Access file at runtime?
    S Sandra

    You can use: CDaoDatabase db; CString strDBFileName = "d:\\aaa.db"; db.Create(strDBFileName, dbLangGeneral, dbVersion30)

    C / C++ / MFC database help tutorial question

  • Windows 2000 performance monitor
    S Sandra

    May be your problem is that the buffers are not aligned to 8 bytes (in NT4 they had to be aligned to 32 bits) Check Event log for event 1016

    System Admin json performance help

  • How to GetItemText from a TreeView using right click?
    S Sandra

    To your class derived from TreeView add to the message handler //{{AFX_MSG(CMyTreeView) afx_msg void OnRButtonDown(UINT nFlags, CPoint point); //}}AFX_MSG Implement the function OnRButtonDown as following void CMyTreeView::OnLButtonDown(UINT nFlags, CPoint point) { UINT uFlags; HTREEITEM hItem = GetTreeCtrl().HitTest(point, &uFlags); if ((hItem != NULL) && (uFlags & TVHT_ONITEM)) { CString strText = GetTreeCtrl().GetItemText(hItem); AfxMessageBox(strText); } }

    Site Bugs / Suggestions data-structures tutorial question

  • CString to CHAR *
    S Sandra

    str.GetBuffer(0) does the work. Don't forget to call str.ReleaseBuffer Also (LPSTR)(LPCSTR)str will be ok in the case you don't plan to play with the buffer

    C / C++ / MFC question help
  • Login

  • Don't have an account? Register

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