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
A

ASchunk

@ASchunk
About
Posts
8
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • 2002 vs 2003 Link Problems
    A ASchunk

    Hi, you got only one chance left. Contact the Microsoft people.:cool: They should know.:rolleyes: However, there are some updates on the msdn.com site. May be these patches work.

    C / C++ / MFC csharp visual-studio graphics game-dev question

  • C++ Library Question.
    A ASchunk

    Hi, there is a function called to_ulong() defined in the bitset header file which is the counterfunction to to_string() which turns a string into a binary value. Hope it helps. Regards. Alex

    C / C++ / MFC question c++

  • I got lines written over by other text in a CEdit control
    A ASchunk

    Hi, you told me that you are using the TRANSPARENT mode for displaying your data. The TRANSPARENT mode usually hides a given rectangle around a text in a window. This rectangle would usually require a certain space to be displayed - visible or not - on the screen. So if you don't leave enough space for your characters - that is the height of a character in a certain font and the space for the rectangle - you may overlap the rectangle of one line with another. Note: the rectangle i am speaking of is an abstract rectangle which cannot be physically displayed. You can calculate the necessary number of space for a specific character by using the following code: TEXTMETRIC tm; int cxChar, cyChar; // width and height of a character cxChar = tm.tmAveCharWidth //the average width of a char cyChar = tm.tmHeight + tm.tmExtarnalLeading The TEXTMETRIC structure encapsualtes almost all avaiable information of chars. What your code suffers is a lack of external leading that is the space around a character that is needed to display is. For more information on this structure I refer you to the MFC documentation or Charles Petzold's Programming Windows 5th edition. This may look a bit comlicated but in the end its somewhat straightforward:suss: Hope it works Regards. Alex

    C / C++ / MFC help

  • getMinMaxInfo use
    A ASchunk

    Hi, the reason is that the WM_GETMINMAXINFO is usually only avaiable for Windows. The Visual C++ help index says that this handler fills an array with information of the window. However, since dialogs are considered as a window this seems to be corrected. Kindly yours. Alex

    C / C++ / MFC question

  • I got lines written over by other text in a CEdit control
    A ASchunk

    Hi, the same phenomenon occurs from time to time in Word. Don't know what causes this problem. Are you using the TRANSPARENT property anywhere in your code??? Regards. Alex

    C / C++ / MFC help

  • Programmers week!
    A ASchunk

    Hi, is this your personal working schedule????:):):) Your work must be really hard regarding your weekend plans:zzz::zzz::zzz: Kindly yours Alex

    C / C++ / MFC

  • Parse a binary number
    A ASchunk

    Hi, yes you can split of the TCP address into its compounds and parse the compounds instead. Regards. Alex

    C / C++ / MFC

  • Threads
    A ASchunk

    Hi, yes threads are part of the Operating system. Windows for example handles threads in a different manner than Unix or Linux does. Windows assigns to each thread a certain amount of time during which this thread can perform its task. If there are multiple threads at one time Windows determines which thread has priority of the others and executes this thread. Linux and Unix handle threads differently. The stl can also handle threads yet it does not have a special class or library that deals with threads. You have to write your own thread managing class or library.

    C / C++ / MFC question c++ linux tutorial lounge
  • Login

  • Don't have an account? Register

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