Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

~4K People Reached
Favorite Tags
Member Avatar for dpreznik

Dear experts, In my application, I am using a custom control that is a GroupBox and a CheckBox instead of a common caption. I got the control here: [url]http://www.codeguru.com/cpp/cpp/cpp_mfc/article.php/c4149[/url] I had to change the code to allow the checkbox to have multiline text: [CODE] CRect rc; GetWindowRect(rc); // Get the …

0
58
Member Avatar for dpreznik

Dear experts, Could you please tell me if it is possible to have a multiline caption for a Group Box? I have a GroupBox that uses a checkbox as a title. The style of the checkbox is set like this: [CODE] m_TitleBox.Create(strText, BS_AUTOCHECKBOX | WS_CHILD | WS_TABSTOP, rc, this, ID_TITLE); …

0
42
Member Avatar for dpreznik

Dear friends, I need to make a report that would let the user to pick which columns he wants to see. I found how to do it here: [url]http://www.c-sharpcorner.com/UploadFile/uditsingh/CR1111022006055359AM/CR11.aspx[/url] This works, but I still have two problems: 1)When you start the report, you see a page with several comboboxes (according …

Member Avatar for amit121
0
369
Member Avatar for dpreznik

Dear Experts, I have a modal popup and a GridView in it. The GridView is populated programmatically, i.e. I use .DataBind(). I can enter data into some of the GridView's controls. After I press Submit, I expect to do something with the entered data. But in the button press handler, …

Member Avatar for dpreznik
0
70
Member Avatar for dpreznik

Dear experts, I have a TabContainer, and one of its tab panels has a user control with a wide GridView in it. Because of some reason, the GridView goes way beyond the size of the tab panel and the tab container. How can I make the form and the tab …

0
49
Member Avatar for dpreznik

Dear experts, I have a GridView with an invisible CancelEdit button. I want to use this button to get out of Edit mode. When I make this button visible for testing purposes and press it with the mouse, it works fine, getting me out of Edit mode. But I need …

Member Avatar for dpreznik
0
99
Member Avatar for dpreznik

Dear friends, I have a tab container with many tab panels in it. In each tab panel, I have a GridView which has an Edit button in each row. When Edit button is pressed, it turns into an Update button, and all fields become editable. When the Update button is …

Member Avatar for dpreznik
0
864
Member Avatar for dpreznik

I have an MFC application. On the following line MonoBuff = new short[iSize]; an exception is thrown that is caught in CATCH_ALL(e) block in wincore.cpp, getting "Warning: Uncaught exception in WindowProc". It is said to be a CMemoryException. Surprisingly, when I tried to use try/catch block in my code, CMemoryException …

0
59
Member Avatar for dpreznik

Dear friends, Could somebody please help me make a gridview that can be resized with a mouse? Thank you in advance, Dmitriy

Member Avatar for dpreznik
0
925
Member Avatar for Jennifer84

I wonder something about finding a specific character in a string. What I am trying is to find "*" and if that character is found in the string, I will write "Found" to a file. When running the code below. All this is happening but the same thing is happening …

Member Avatar for dpreznik
0
144
Member Avatar for dpreznik

Hi, Maybe somebody could help me set a popup menu item text at runtime in MFC? Because of some reason, the following code doesn't work for me: [CODE] if(pDoc->m_pCurChapter->m_pMarkedParagraph->m_bFlagged) menu.GetSubMenu(0)->ModifyMenu(ID_FLOATING_MENU_FLAG_PICKUP, MF_BYCOMMAND|MF_STRING|MF_POPUP, ID_FLOATING_MENU_FLAG_PICKUP, "Unflag Pickup"); else menu.GetSubMenu(0)->ModifyMenu(ID_FLOATING_MENU_FLAG_PICKUP, MF_BYCOMMAND|MF_STRING|MF_POPUP, ID_FLOATING_MENU_FLAG_PICKUP, "Flag Pickup"); [/CODE]

0
51
Member Avatar for dpreznik

Maybe somebody could help me find code for upsampling audio data from .wav file? I have it stored in an array of SHORT integers. Thank you in advance.

0
76
Member Avatar for dpreznik

Dear friends, I need a help with a Wait (Hour Glass) cursor. In my MFC program, I have the following code: [CODE] void CBookDoc::SomeMethod() { AfxGetApp()->DoWaitCursor(1); // display the hourglass cursor ... // Some stuff is done ... AfxGetApp()->DoWaitCursor(-1); // -1->>remove the hourglass cursor }[/CODE] I wonder why the cursor …

Member Avatar for dpreznik
0
525
Member Avatar for dpreznik

Maybe somebody could please help me understand why I fail to write stl's map of vectors into a file using CFile::Write()? typedef std::vector<CLocation> LocationArray; typedef std::map<int, LocationArray > MapLocationArray; ... [CODE] int iSize = sizeof(m_mapLocations); cf->Write(&iSize, sizeof(iSize)); cf->Write(&m_mapLocations, iSize); [/CODE] When I am writing, the m_mapLocations contains valid data. But …

0
67
Member Avatar for dpreznik

I am facing a problem with a CArray. I have a class member of type CArray<MyType, MyType&> m_MyArray; When the object is destroyed, of course the destructor of CArray<MyType, MyType&> is called. Here is the destructor: [CODE]template<class TYPE, class ARG_TYPE> CArray<TYPE, ARG_TYPE>::~CArray() { ASSERT_VALID(this); if (m_pData != NULL) { for( …

Member Avatar for Tom Gunn
0
206
Member Avatar for dpreznik

In my Page_Load() I have the following code: [ICODE]Button btnCancel = wizSummaryDetails.FindControl("FinishNavigationTemplateContainerID").FindControl("CancelButton") as Button; btnCancel.Attributes.Add("onclick", "setSessionAction('NONE');"); [/ICODE] Also, I have the following function that handles clicks on the same button: [ICODE]protected void DetailCancelButton_Click(object sender, EventArgs e) { wizSummaryDetails.MoveTo(wizStepSummary); Session["Action"] = ACTION.NONE; LoadData(); } [/ICODE] But if I have that part …

Member Avatar for jbisono
0
121
Member Avatar for dpreznik

Could anybody please explain to me why my TextChanged event doesn't fire? [code]protected new void Page_Load(object sender, EventArgs e) { base.Page_Load(sender, e); if (!IsPostBack) { Value.TextChanged += new EventHandler(OnValueChanged); } } protected void OnValueChanged(object sender, EventArgs e) { ViewState["IsModified"] = true; }[/code] The Value textbox is on the second page …

Member Avatar for sknake
0
100
Member Avatar for dpreznik

I have a wizard control. On one of its pages I have various controls like textboxes and checkboxes. Could anybody please tell me how I can check from my code (e.g. on Cancel) if the contents of the controls has been changed? I know how to check if each control …

Member Avatar for dpreznik
0
158
Member Avatar for dpreznik

I have a wizard control with two steps: Summary and Details. Within Summary, I have a gridview. When I click on the gridview column's header to sort the data, for some reason I am redirected to the next, Details wizard step. Could anybody please tell me why it happens and …

Member Avatar for dpreznik
0
89