Yes. I meant to name it differently.
elephantstar
Posts
-
CString pointers -
CString pointersI 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; }
-
disable auto-complete in dropdown [modified]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.
-
disable auto-complete in dropdown [modified]Yes, it's a dropdown combo box.
-
disable auto-complete in dropdown [modified]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
-
how to display text in a combo box edit controlThanks. That worked.
-
how to display text in a combo box edit controlYes.
-
how to display text in a combo box edit controlI 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.
-
Combo box controlIs 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.
-
how to make your edit control accept only capital lettersDuh. I've looked at the properties but somehow overlooked it. Thanks a lot!
-
how to make your edit control accept only capital lettersHi 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.
-
Cannot size window using STARTUPINFOIt 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?
-
Cannot size window using STARTUPINFOThe 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 .
-
Cannot size window using STARTUPINFOI 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);
-
How to call CView::OnUpdateI 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!
-
check if external app is already runningThanks, 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.
-
check if external app is already runningIs 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!
-
how to bold static text controlThanks David!
-
how to bold static text controlHow do I bold a static text control? Thanks!
-
number o fcontrols limited to 255?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?