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
F

Feng Yuan

@Feng Yuan
About
Posts
14
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Creating circular background image with transparency
    F Feng Yuan

    How can you select a region into a DC ? Region can only be selected as clipping region, meta region, or used in PaintRgn directly.

    C / C++ / MFC question

  • How to get video driver version?
    F Feng Yuan

    Try: EnumDisplayDevices

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

  • How to get video driver version?
    F Feng Yuan

    Try: EnumDisplayDevices

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

  • SEH problem in release mode
    F Feng Yuan

    As you said, compiler optimization in release mode may have removed the divide-by-zero.

    C / C++ / MFC c++ debugging help announcement

  • RGB to 5.6.5 translation?
    F Feng Yuan

    ( (GetRValue(cr) >> 3) << 11 ) | ( (GetGValue(cr) >> 2) << 5 ) | (GetBValue(cr) >> 3)

    C / C++ / MFC question

  • Stretching Bitmap Problem
    F Feng Yuan

    hBmp should be selected into srcMemDC. Destination bitmap missing.

    C / C++ / MFC graphics performance help

  • LoadImage not loading animated cursor from resources when statically linking to MFC
    F Feng Yuan

    Convert the image to one of the closest DIB format, and then use StretchDIBits to display it. My guess is that each pixel is a 16-bit grayscale level, so the closest DIB format would be 8-bit grayscale image, or a 256-color DIB with a grayscale color table. Setup a BITMAPINFO structure with a 256-color grayscale color table, convert the image array to a 64x64 BYTE array, and then use StretchDIBits to display it.

    C / C++ / MFC c++ debugging help announcement learning

  • Unicode Character Rendering in 95/98
    F Feng Yuan

    You can use ExtTextOut and glyph index to display any glyph in a font; Or you can use TextOutW or ExtTextOutW to display UNICODE string without using glyph index. http://www.amazon.com/exec/obidos/ASIN/0130869856

    C / C++ / MFC tutorial database

  • Finding bitmap resources
    F Feng Yuan

    FindResource, LoadResource, and LockResource gives you a pointer to read-only data.

    C / C++ / MFC graphics performance help tutorial question

  • metafile to bitmap
    F Feng Yuan

    Select bitmap into the memory DC before drawing.

    C / C++ / MFC graphics tutorial question

  • number of control on a dialog resource
    F Feng Yuan

    Sounds like a bug in the IDE, edit the .rc file yourself.

    C / C++ / MFC question learning

  • Process-Adress
    F Feng Yuan

    Each Win32 process has its own independent address space, of which only the upper part is shared system wide. For example, address 0x10000000 can point to different data in process1 vs. process2. http://www.amazon.com/exec/obidos/ASIN/0130869856

    C / C++ / MFC performance help

  • metafile to bitmap
    F Feng Yuan

    Create a DIB section and a memory DC, select the DIB section into the memory DC, play the metafile into memory DC, now you got a bitmap in the DIB section. http://www.amazon.com/exec/obidos/ASIN/0130869856

    C / C++ / MFC graphics tutorial question

  • Serialize a CRgn?
    F Feng Yuan

    DWORD size = GetRgnData(hRgn, 0, NULL); RGNDATA * pData = (RGNDATA *) new BYTE[size]; GetRgnData(hRgn, size, pData); WriteFile(hFile, ,,, pData, size,,,); delete [] (BYTE *) pData;

    C / C++ / MFC tutorial 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