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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
A

algol

@algol
About
Posts
9
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to display an image loaded from a file on a dialog ?
    A algol

    CStatic::SetBitmap() (or send an STM_SETIMAGE message) and LoadImage with LR_LOADFROMFILE parameter (for BMPs). JPGs you can load with OleLoadPicturePath() and obtain hBmp through IPicture::get_Handle. You can also use IPicture::Render() to draw loaded image.

    C / C++ / MFC graphics tutorial question

  • Get time of a file
    A algol

    GetFileTime() API function or CFileFind::GetCreationTime(), GetLastWriteTime().

    C / C++ / MFC question

  • Read a jpeg file
    A algol

    CxImage class has a LoadResource() method.

    C / C++ / MFC json learning

  • Read file types for all files in a specified directory
    A algol

    You could get string description of file's type using SHGetFileInfo() API function with SHGFI_TYPENAME flag.

    C / C++ / MFC question help

  • Accessing a file's properties from a VC++ application
    A algol

    Try to replace StgOpenStorage with StgOpenStorageEx and STGFMT_FILE parameter, as described in MSDN article "IPropertySetStorage-NTFS File System Implementation".

    COM c++ com tutorial question

  • CDHTMLDialog Scroll ?
    A algol

    CDHtmlDialog::OnInitDialog() calls SetHostFlags(DOCHOSTUIFLAG_NO3DBORDER | DOCHOSTUIFLAG_SCROLL_NO). Your call clears DOCHOSTUIFLAG_SCROLL_NO flag and enables scroll bars.

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

  • Event notification from checkbox within TreeControl (from WTL)
    A algol

    Place the following code into OnClick: #define MSG_CHECKSTATECHANGE (WM_USER + 1001) DWORD dwpos = GetMessagePos(); TVHITTESTINFO ht; ht.pt.x = GET_X_LPARAM(dwpos); ht.pt.y = GET_Y_LPARAM(dwpos); ::MapWindowPoints(HWND_DESKTOP, pnmh->hwndFrom, &ht.pt, 1); ::TreeView_HitTest(lpnm->hwndFrom, &ht); // If click on checkbox then post user defined message if(TVHT_ONITEMSTATEICON & ht.flags) { PostMessage(MSG_CHECKSTATECHANGE, 0, (LPARAM)ht.hItem); } You can also send the MSG_CHECKSTATECHANGE message from TVN_KEYDOWN notify handler when SPACE key is pressed.

    ATL / WTL / STL c++ question

  • System Menu
    A algol

    Take a look on Context Menu Shell Extensions and IContextMenu. You could find a number of articles at this site.

    C / C++ / MFC

  • very long numbers
    A algol

    Hi, You can use Decimal data type and Decimal arithmetic functions: VarDecAdd, VarDecMul etc. They are declared in oleauto.h. Decimal variables are stored as 12-byte signed integers and can store values from 0.0000000000000000000000000001 to 79,228,162,514,264,337,593,543,950,335 Alexander

    C / C++ / MFC help question
  • Login

  • Don't have an account? Register

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