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
R

ReX

@ReX
About
Posts
3
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Combo box being clipped by parent
    R ReX

    The size of the dropdown rectangle is correct adjusted in the resource editor. If I size the dialog bigger, the the full dropdown list is shown (because dialog bottom is far enough) :confused: ReX

    C / C++ / MFC question

  • Combo box being clipped by parent
    R ReX

    Hello, I have created a CDialog. Inside it I have put a CComboBox and have added items to it. Whats happening is that when i click the drop down arrow it clips the drop list inside the dialog only showing the number of items that will fit above the bottom of the dialog. Is it possible to get it not to clip the droplist within the dialog ? Thanks ReX

    C / C++ / MFC question

  • std:string
    R ReX

    I wrote this function for this purpose. I hope this helps. inline void Replace(std::string* pstr, const char old_char, char* pnew_char) { if(!pstr->empty()) { int n = 0; while((n = pstr->find(old_char)) != -1) { *pstr = pstr->erase(n, 1); *pstr = pstr->insert(n, pnew_char); } } } Usage: Replace(&mystring, 'd', ','); For the last character only you can take: mystring.erase(mystring.length(), 1); mystring.append(','); Greetings ReX

    C / C++ / MFC question tutorial
  • Login

  • Don't have an account? Register

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