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
P

Per

@Per
About
Posts
9
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • UNICODE
    P Per

    You could look in the Charachter Map in your accessories. Some fonts supports Unicode. I'm not sure but I think you have to have w2k to be able to see the Unicode charchters. /Per

    C / C++ / MFC question

  • Window opaquenes
    P Per

    Hi Does anybody know if there is a way to control how opaque a window is? Could I make a window e.g. 50% opaque or at least make an image in a window 50% opaque? Thanks in advance. /Per

    C / C++ / MFC question

  • UNICODE
    P Per

    Hi For the first 255 charachters the unicode codes matches the ansi table. Instead of having different tables with 255 charachters each unicode is one big table with roughly 65000 charachters covering the worlds all different languages and some special symbols aswell. /Per

    C / C++ / MFC question

  • A Simple Question about File Status
    P Per

    I'm not sure what you mean by 'being read'. If you mean 'is the file being read from right now' I don't know but if you mean 'when was the file last accessed' I think you can use GetStatus(). /Per

    C / C++ / MFC question tutorial

  • Getting Edit control caret position?
    P Per

    Maybe you can use GetCaretPos(). /Per

    C / C++ / MFC tutorial question

  • Chum in the water
    P Per

    Hopefully the interview ended because of the screaming from general Reinwald being kicked in the nads by the reporter, repeatedly. In case he was in possession of any from the start. /Per

    The Lounge question lounge career

  • A Simple Question about File Status
    P Per

    You can use CFile::GetStatus() /Per

    C / C++ / MFC question tutorial

  • large text files in rich edit controls
    P Per

    Use LimitText(). /Per

    C / C++ / MFC help question

  • MFC, Rich Edit HELP !!!
    P Per

    You could use SetText() or stream the text in with a callback function something like:

    DWORD CALLBACK readText(DWORD dwFileHandle, LPBYTE lpBuffer, LONG nbrToRead,
    LONG FAR* lpNbrRead)
    {
    BOOL file = ReadFile((HANDLE)dwFileHandle,lpBuffer, nbrToRead,
    (unsigned long*)lpNbrRead, NULL);

    if(file == FALSE ){
    	AfxMessageBox(\_T("Could'n open file!"),MB\_ICONEXCLAMATION);
    	return 1;
    }
    return 0;
    

    }

    and then call it with something like this:

    EDITSTREAM stream;
    HANDLE hFil;//file to open
    
    fFormat = SF\_TEXT;
    strom.dwCookie = (DWORD)hFil;
    strom.pfnCallback = readText;
    m\_recText.StreamIn( fFormat, strom );//RichEditCtrl
    

    /Per

    C / C++ / MFC help c++
  • Login

  • Don't have an account? Register

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