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
E

elephantstar

@elephantstar
About
Posts
133
Topics
59
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • CString pointers
    E elephantstar

    Yes. I meant to name it differently.

    C / C++ / MFC question discussion

  • CString pointers
    E elephantstar

    I need to pass dereference a pointer so that I can obtain a CString. It seems to crash on the second function call. I think I'm not handling the deletion of the pointer correctly? What do you think? Thanks! CString new_date; BOOL new_date; new_date = IsDate("4/5/07", &new_date); int CDateTime::IsDate(CString datestr, CString * new_date_format) { CString month; CString day; CString year; /* parse datestr */ CString revised_str = month + "/" + day + "/" + year; *new_date_format = revised_str; }

    C / C++ / MFC question discussion

  • disable auto-complete in dropdown [modified]
    E elephantstar

    No. It's just a dropdown with a CString member variable mapped to it. When I set the value to 16 for instance, it accepts that value. But for some reason, the value changes or the auto-complete kicks in when the number resembles what's in the pull-down.

    C / C++ / MFC tutorial question

  • disable auto-complete in dropdown [modified]
    E elephantstar

    Yes, it's a dropdown combo box.

    C / C++ / MFC tutorial question

  • disable auto-complete in dropdown [modified]
    E elephantstar

    I am trying to set the edit control part of the dropdown to a specific number such as 15 (m_data = "15"). But because a value of 150 exists in the dropdown, it automatically sets it that number. How to I disable this? Thanks. -- modified at 12:10 Tuesday 30th May, 2006

    C / C++ / MFC tutorial question

  • how to display text in a combo box edit control
    E elephantstar

    Thanks. That worked.

    C / C++ / MFC help tutorial question

  • how to display text in a combo box edit control
    E elephantstar

    Yes.

    C / C++ / MFC help tutorial question

  • how to display text in a combo box edit control
    E elephantstar

    I have a dropdown combo box that needs to be able to accept new entries not listed in the combo box via the edit control. If I create the member variable as a value instead of control, I'm able to save the selection or text input, but how do I display it in the edit control when I reopen the window. I tried the following: private: CString test_value; test_value = m_test; //Saves the selection //m_test = test_value; //tried this first GetDlgItem(IDC_TEST)->SetWindowText(m_test); //this didn't work either UpdateData(FALSE); Please help! Thanks.

    C / C++ / MFC help tutorial question

  • Combo box control
    E elephantstar

    Is there a way to make a combo box accept user input/data that is not listed in the list. For example, I have 10 and 20 in the list, can I have the user type in 80 in the dropdown list? I thought the dropdown style does this? Thanks.

    C / C++ / MFC tutorial question

  • how to make your edit control accept only capital letters
    E elephantstar

    Duh. I've looked at the properties but somehow overlooked it. Thanks a lot!

    C / C++ / MFC question tutorial

  • how to make your edit control accept only capital letters
    E elephantstar

    Hi there, I wish to make my edit control accept only capital letters in combination with numbers. The member variable (m_confirmation_num) for that control is a CString with max characters of 5. That string later gets converted to a UINT conf_num. Initially m_confirmation is set to NULL and m_conf_num to 0. The edit control is defaulted to "00000" when the dialog box is first opened. With CAPS LOCK on or OFF, the edit control accepts only capital letters. This is what I want but why does it do that. This only happens with the following set up but for cases where I do not want the zeroes to display in the field, it accepts lowercase. Is there a way to make the edit control accept only capital letters? Or have the lowercase changed to uppercase upon user input? And is there a function that checks to see if a char is uppper or lowercase? Thanks.

    C / C++ / MFC question tutorial

  • Cannot size window using STARTUPINFO
    E elephantstar

    It still maximizes the window. Ryan (below) mentioned that application can ignore the STARTUPINFO struct if it wants to. So is there no way around this?

    C / C++ / MFC question

  • Cannot size window using STARTUPINFO
    E elephantstar

    The window does show up but it's maximized. That's not what I want. I want the window size to be set to what I defined for dwXSize and dwYSize .

    C / C++ / MFC question

  • Cannot size window using STARTUPINFO
    E elephantstar

    I would like my newly window to open up with the given sizes. The following code maximizes the window when it gets created. Why doesn't it work? Thanks! STARTUPINFO stStartUpInfo; PROCESS_INFORMATION pProcessInfo; memset(&stStartUpInfo, 0, sizeof(STARTUPINFO)); stStartUpInfo.cb = sizeof(STARTUPINFO); stStartUpInfo.dwFlags = STARTF_USESIZE; CreateProcess(NULL, CmdLine, NULL, NULL, FALSE, NORMAL_PRIORITY_CLASS, NULL, NULL, &stStartUpInfo, &pProcessInfo);

    C / C++ / MFC question

  • How to call CView::OnUpdate
    E elephantstar

    I have a window or dialog box (class derives from CFormView) that needs to be updated when the mouse is clicking on any of the items in the menu bar or when the focus leaves the dialog box. There are two cases: (1) When there are other child windows open in the app, is there an OnKillFocus that I can call to do the update? (2) Also, when the window is the only open window in the application, and the user selects a menu item, KillFocus will not work since it's still the active window. How do I know the focus is now on the menu bar? Thanks!

    C / C++ / MFC question tutorial announcement

  • check if external app is already running
    E elephantstar

    Thanks, that worked. I also have another question. I was planning on using AttachThreadInput() to bring the application to the front but I wasn't sure how to obtain the thread id. Any help is much appreciated. Thanks.

    C / C++ / MFC question

  • check if external app is already running
    E elephantstar

    Is there a simple way of checking to see if an external application, say Microsoft Word, is already running before creating a new process via CreateProcess? Thanks!

    C / C++ / MFC question

  • how to bold static text control
    E elephantstar

    Thanks David!

    C / C++ / MFC question tutorial

  • how to bold static text control
    E elephantstar

    How do I bold a static text control? Thanks!

    C / C++ / MFC question tutorial

  • number o fcontrols limited to 255?
    E elephantstar

    Client requirements. So there's no way of changing the limit? Adding it at run-time is my best bet? Doing that might complicate things?

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