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
B

BiswaR

@BiswaR
About
Posts
23
Topics
13
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • List Control column Sort Problem
    B BiswaR

    Hello Guys, I have list control on a dialog box. When i click a header(column name) of the list control it should be sorted(ascending or descending) autimatically. Is there any property to set this or i need to write this sorting logic itself ? Please reply soon if you guys know this it's urgent. Thanks! -- modified at 4:06 Tuesday 11th April, 2006

    C / C++ / MFC algorithms help question

  • Combo box height is not increasing
    B BiswaR

    Hi Guys, I have a list control containing 3 columns, When i click on any item in the list box it again pops up a combo box having 3 values.If you select a valu in that combobox then it sets that value to the 2nd column of the list control. But problem is that when i am tring to increase the height of the combo box it's not increasing and reamain same always. I am giving you the whole code. please tell me how to fix this problem. I am trying to increase the rect.bottom in the code -> "PLEASE SEE THIS". This code is not complicated at all and you can ignor many things as the last portion is only important and i have given the comment there. void CListAgr::OnListLButton(WPARAM wParam, LPARAM lParam) { UINT nFlags = lParam; int iItem = wParam; int iItem = m_list_Agr.GetNextItem(-1, LVNI_SELECTED); if (iItem >= 0) // If any item in the list box is selected { CRect rect; int offset = 0; // Make sure that the item is visible m_list_Agr.GetSubItemRect(iItem, 1, LVIR_BOUNDS, rect); // Now scroll if we need to expose the column CRect rcClient; m_list_leaseabs.GetClientRect(rcClient); // Set the scroll size. You can ignore this as it is always false and not // executed if( offset + rect.left < 0 || offset + rect.left > rcClient.right ) { CSize size; size.cx = rect.left; size.cy = 0; m_list_leaseabs.Scroll(size); rect.left -= size.cx; } //Checks if the right edge of combo box is greater than the list control //and if that is true then it will make right edge of combobox equal to // right edge of list control rect.left += offset; rect.right = rect.left + m_list_Agr.GetColumnWidth(1); if(rect.right > rcClient.right) rect.right = rcClient.right; // Here i am setting the length(bottom) of the combo box,creating it and // displaying it. I think there is some problem in the code below. rect.NormalizeRect(); rect.bottom += 10 * rect.Height();//dropdown area "PLEASE SEE THIS" rect.left += 10; rect.right += 10; rect.top += 30; CStringList lstItems; lstItems.AddTail("X"); lstItems.AddTail("Y"); lstItems.AddTail("Z"); CComboBox *pADFList = new CComboInListView(iItem, 1, &lstItems); DWORD dwStyle = WS_CHILD | WS_VISIBLE | WS_VSCROLL | WS_HSCROLL|CBS_DROPDOWNLIST | CBS_DISABLENOSCROLL; pADFList->Create(dwStyle, rect, this, IDC_COMBOBOXINLISTVIEW); pADFList->ModifyStyleEx(0,WS_EX_CLIENTEDGE); pADFList->SetHorizontalExtent(m_list_Agr.GetColumnWidth(1)); pADFList-

    C / C++ / MFC help tutorial

  • Combo box height is not increasing
    B BiswaR

    No it's not working. As per MSDN CBS_DISABLENOSCROLL: The list box shows a disabled vertical scroll bar when the list box does not contain enough items to scroll. Without this style, the scroll bar is hidden when the list box does not contain enough items. If possible then check the code we are missing fundamental concept like it's mapping mode or something.

    C / C++ / MFC help tutorial

  • Combo box height is not increasing
    B BiswaR

    Hi Guys, I have a list control containing 3 columns, When i click on any item in the list box it again pops up a combo box. But problem is that when i am tring to increase the height of the combo box it's not increasing and reamain same always. I am giving you the whole code. please tell me how to fix this problem. I am trying to increase the rect.bottom but its not increasing. void CListAgr::OnListLButton(WPARAM wParam, LPARAM lParam) { UINT nFlags = lParam; int iItem = wParam; int iItem = m_list_Agr.GetNextItem(-1, LVNI_SELECTED); if (iItem >= 0) { CRect rect; int offset = 0; // Make sure that the item is visible m_list_Agr.GetSubItemRect(iItem, 1, LVIR_BOUNDS, rect); // Now scroll if we need to expose the column CRect rcClient; m_list_leaseabs.GetClientRect(rcClient); if( offset + rect.left < 0 || offset + rect.left > rcClient.right ) { CSize size; size.cx = rect.left; size.cy = 0; m_list_leaseabs.Scroll(size); rect.left -= size.cx; } rect.left += offset; rect.right = rect.left + m_list_Agr.GetColumnWidth(1); if(rect.right > rcClient.right) rect.right = rcClient.right; //basic code end rect.NormalizeRect(); rect.bottom += 10 * rect.Height();//dropdown area "PLEASE SEE THIS" rect.left += 10; rect.right += 10; rect.top += 30; CStringList lstItems; lstItems.AddTail("X"); lstItems.AddTail("Y"); lstItems.AddTail("Z"); CComboBox *pADFList = new CComboInListView(iItem, 1, &lstItems); DWORD dwStyle = WS_CHILD | WS_VISIBLE | WS_VSCROLL | WS_HSCROLL|CBS_DROPDOWNLIST | CBS_DISABLENOSCROLL; pADFList->Create(dwStyle, rect, this, IDC_COMBOBOXINLISTVIEW); pADFList->ModifyStyleEx(0,WS_EX_CLIENTEDGE);//can we tell at all pADFList->SetHorizontalExtent(m_list_Agr.GetColumnWidth(1)); pADFList->ShowDropDown(); pADFList->SelectString(-1, m_list_Agr.GetItemText(iItem, 1)); } }

    C / C++ / MFC help tutorial

  • Changing Tab Order Programmatically
    B BiswaR

    Hi Guys, Is there any way to change the tab orders for a controls programmatically.

    C / C++ / MFC

  • How to set only integer value property for an edit control
    B BiswaR

    Thanks a lot to all of you as all are good suggestions. But as per my requrement i feel "Add the Number style to Edit" will be the best solution. But i do not know exactly how to set it and also i am not able find the same. Nave, Can you please tell me how to set this style.

    C / C++ / MFC help tutorial

  • Visual studio is not responding when trying to add file
    B BiswaR

    Thanks a lot. Have a nice day.

    C / C++ / MFC help c++ csharp visual-studio tutorial

  • How to set only integer value property for an edit control
    B BiswaR

    Hi Guys, I have added one edit control to a dialog and attached a string variable to that. But i want only integers can be entered to the edit control and not characters.(N.B. I have attached a string variable to that edit control because i want that value to be received as string. Please help.

    C / C++ / MFC help tutorial

  • Visual studio is not responding when trying to add file
    B BiswaR

    Hi Guys, In "File View" of my visual studio's work space when i "Right Click->Add Files to Folder" its giving me one error like "Microsoft Developer(R) Studio has encounted a problem and you need to close it..............." When i am closing it then its not even closing rather the hour glass comes and it's taking too much time. For your information i am working on a visual c++ project.I will appreciate if any one can tell what is the cause and how to fix it.

    C / C++ / MFC help c++ csharp visual-studio tutorial

  • Project files are compiling always
    B BiswaR

    Hi All, When i am compling my project all files are getting compiled though i do not modify all the files. I think this is related to any setting issue. Can any one please tell me how to stop compilation of all files.

    C / C++ / MFC help tutorial

  • How In-Process component(DLL) share by no. of clients....
    B BiswaR

    Actually the dll will be loaded once by the first client. Subsequent client will check if that dll is present in memory or not. If that is present then they will use the same dll rather then loading it again. All this is taken care by the O.S. The kernel32.dll will keep track of whether the dll is loaded or not. If it is loaded then it will set some flag so that when a request to load that dll comes it will check that flag and load it accordingly.

    COM com performance question

  • When edit control is added to a dialog, application is crashing
    B BiswaR

    The LoadDetail() is called in the OnUpdate() of the view class.

    C / C++ / MFC help

  • When edit control is added to a dialog, application is crashing
    B BiswaR

    When the dialog is created in the view class it calls the DoDataExchange function and when it excutes the line DDX_Text(pDX,IDC_EDIT_BUILDING_AGE,m_BuildingAge) it crashes and when i remove the entry it works fine. Also as i said when directly try to access by it using GetDlgItem then also it crashes. One more thing i want to say this class was not visible when opened the class wizard. So i deleted the .clw file and agained opened it. That class was then visible but when i selected that i got parsing error for one of entries of DoDataExchange function that is DDX_Dollar(.....). That is why i added entry for this control manually.

    C / C++ / MFC help

  • When edit control is added to a dialog, application is crashing
    B BiswaR

    I have a dialog box with id IDD_AGREE_FRAME_ABSTRACTION . This class's all cotrols are populated from the view class using one LoadDetails() function which is implemented inside the dialog class. I have added an edit box to this dialog. But when ever i am creating any variable of type: 1. CString and attaching it to the editbox through class wizard/manually. It's giving me a message "An unsupported operation was attempted". When i click that msg box the application is getting crashed. 2. CEdit then i am getting the message and the application is crashing. When i am debugging the application the message box is coming in the DoDataExchange i for that particular entry for that editbox control. I deleted the entry in the DoDataExchange for the control and just tried to set a its text by using GetDldItem(IDC_EDIT_BLDG_AGE)->SetWindowText("biswa") but again the application is crashing. For all the cases when its crashing it's giving the error as "Unhandled exception in the app.exe(MFC42D.DLL):0x0000005: Access Violation." I am really surprised why this is happening for this dialog where as for other dialog there is no problem when i do the same. Also when i am removing the the DDX_Text entry for the control causing the problem the whole application is running fine. Please help me on this. This is really important for me. If you need any more information then just tell me i can give you the detail history for this.

    C / C++ / MFC help

  • class view of project work space is not showing all the classes
    B BiswaR

    Hey Anil, I have sent a mail to your gmail account. Please have a look when you are free.

    C / C++ / MFC help

  • class view of project work space is not showing all the classes
    B BiswaR

    Max/Anil, Gr8 dudes. I deleted the .ncb file and reopened. It's really working. Can you people please send me your personal ids i have a real problem that needs a bit more explanation. Please do me a favou by sending your ids i need your help badly. Again thanks a lot for your valuable suggestions.

    C / C++ / MFC help

  • class view of project work space is not showing all the classes
    B BiswaR

    I have one more problem actually my class view of project work space is not showing all the classes in my folder. In my project there are around more than 200 classes. In the old directory i where my code is there i can see all the classes but when i move the code to any other directory or rename the original directory i am able to see only one class. Can any one please help me in this regard.

    C / C++ / MFC help

  • Class view is not showing the whole classes in my project
    B BiswaR

    Hi Guys, First of all i really thank to all as i got all the answers to my doubts. This time i have some interesting problem. In my projects thre are more than 300 classes. But in the class view it's only showing 1 class. Another interesting the same code when it was in the original directory its showing all the classes but when i placed the same code in a different folder it's showing only one class. My team mates are also facing the same problem. Please help me if you know the reason.

    C / C++ / MFC help collaboration

  • Class view is not showing the whole classes in my project
    B BiswaR

    Hi Guys, First of all i really thank to all as i got all the answers to my doubts. This time i have some interesting problem. In my projects thre are more than 300 classes. But in the class view it's only showing 1 class. Another interesting the same code when it was in the original directory its showing all the classes but when i placed the same code in a different folder it's showing only one class. My team mates are also facing the same problem. Please help me if you know the reason.

    C / C++ / MFC help collaboration

  • Dialog Information not showing in class wizard
    B BiswaR

    Hey Thanks a lot for this. But i am having another problem. I am able to see the class in class whizard but when i try to open this class in class wizard its giving me one error as Parsing error: Expected ")", Input Line: "//DDX_Text(pDX, IDC_LE_TENANT_IMPROV_AMT, mcs_le_improv_amt);" This line is there in the dodata exchange. What i need to do for this. Pleas suggest.

    C / C++ / MFC help tutorial learning
  • Login

  • Don't have an account? Register

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