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
A

anand_study

@anand_study
About
Posts
16
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Need printing help - How to print on 1/4 the part of A4 paper on dot-matrix printer
    A anand_study

    Mark Salsbery wrote:

    I understand The problem is that to GDI, it's the paper size setting that causes the advance to the next page when you call EndPage (or EndDoc) from your code. If you set the paper size to 8.5 x 2.75 then it sould only advance 2.75.

    Thanks a lot for nice info. Just curious to know... Does this apply only to Dot Matrix Printer ? i.e. For Laser/Inkjet printer, if I set paper size to 8.5 x 2.75 and use A4 paper, will it eject A4 paper fully or it will allow to continu printing on same paper ? Anand

    C / C++ / MFC c++ question help tutorial workspace

  • Need printing help - How to print on 1/4 the part of A4 paper on dot-matrix printer
    A anand_study

    Problem is...I need to print part of paper and then paper should not be ejected. How to achieve that ? (in an App developed with VC++/MFC and running on WinXP/Win98/Win2000) Thanks a lot for helping. Anand_Arv

    C / C++ / MFC c++ question help tutorial workspace

  • CPU MAC ADDRESS
    A anand_study

    Many commercial Applications are using Motherboard serial-number or hard-disk serial-number for that !

    C / C++ / MFC tutorial question

  • Need printing help - How to print on 1/4 the part of A4 paper on dot-matrix printer
    A anand_study

    I checked many printing articles on CodeProject and CodeGuru Need some help/guidance. From my app (Environment - VC++ 6.0, MFC, Win98/2000/XP), I need to print single as well as batch of invoices and checks on dot-matrix printer - print checks (multiple checks on single A4 page) - print multiple invoices on one A4 or other custome size paper (e.g. 4 small-invoices on one A4 size papers) Question is: For dot-matrix printer, how to achieve printing such that if one invoice is printed in top 1/4 part of A4 paper, whole paper should not come out ? (User may cut printed portion of paper and aftter sometime may continue to print next invoice on same paper). (Similarly need to print one or more check) Any sample or code snippet for such printing ? I appreciate any help/guidance. Anand_Arv

    C / C++ / MFC c++ question help tutorial workspace

  • std::map key std::basic_string<TCHAR> - How to achieve case in-sensitive string lookup ? [modified]
    A anand_study

    Thanks a lot for helping. If I use that compare argument as you suggested, Will I get the same result for all of the following ? // assume that "ABC" (string key) and 101 (long value) is added to mymap mymap.find("Abc") mymap.find("ABC") mymap.find("abc") mymap.find("aBC") Anand_Arv

    ATL / WTL / STL c++ help tutorial question workspace

  • std::map key std::basic_string<TCHAR> - How to achieve case in-sensitive string lookup ? [modified]
    A anand_study

    I need to use std::map with std::basic_string<TCHAR> as key and long as value. std::map<std::basic_string<TCHAR> , long> myMap; How to achieve/implement case in-sensitive string lookup ? My Environment is -> VC++6, MFC, Win98/2000/NT/2003/XP I truly appreciate any help/hint. Thanks Anand_Arv -- modified at 6:48 Friday 9th February, 2007

    ATL / WTL / STL c++ help tutorial question workspace

  • TCHAR to string
    A anand_study

    If your language/tool supports WideCharToMultiByte and MultiByteToWideChar functions, you may use them for ASCII<->UNICODE string conversion. Hope this helps. Anand

    C / C++ / MFC question tutorial

  • Showing virtual list/CListCtrl for CMyComboBox ? How to pass LVN_GETDISPINFO to form view ?
    A anand_study

    Naveen, Thanks a lot for helping. You always answered nicely, regularly and promptly. Are you working for CodeProject ? I am from Vadodara (Gujarat-India) Thanks again. Anand

    C / C++ / MFC c++ help tutorial question

  • Showing virtual list/CListCtrl for CMyComboBox ? How to pass LVN_GETDISPINFO to form view ?
    A anand_study

    Naveen, Thanks a lot for helping. You always answered nicely, regularly and promptly. Are you working for CodeProject or what ? I am from Vadodara (Gujarat-India). Thanks again. Anand

    C / C++ / MFC c++ help tutorial question

  • Showing virtual list/CListCtrl for CMyComboBox ? How to pass LVN_GETDISPINFO to form view ?
    A anand_study

    Nice idea to add m_nParentComboId for parent combo identification. I may do that. But One thing... In CMultiColumnComboBox::OnInit(), after creating list control, with ::SetWindowLong statement... it stores pointer to CMultiColumnComboBox as a long. ::SetWindowLong( m_pListCtrl->m_hWnd, GWL_USERDATA, long(this) ); (Whenever LVN_GETDISPINFO message comes in view from list ctrl) Can I get that value and use that value to identify control id or parent combo ? Thanks for all your help. I learnt nice tricks for handling virtual list. Anand

    C / C++ / MFC c++ help tutorial question

  • Showing virtual list/CListCtrl for CMyComboBox ? How to pass LVN_GETDISPINFO to form view ?
    A anand_study

    Thanks Naveen for taking me into right direction. I did forget to set count for list with SetItemCountEx() I did it and now I am able to show 100000+ items in the virtual list of CMultiColumnComboBox. Thanks a lot for helping me. One Question..? I have custom control IDC_CUSTOM1 in dialog resource of my view. I have subclassed IDC_CUSTOM1 to CMultiColumnComboBox In my project value for IDC_CUSTOM1 is 1005 In MultiColumnComboBox.h value for IDLISTCTRL is 0x3E8 (i.e. 1000) View gets LVN_GETDISPINFO message directly from IDLISTCTRL (i.e. with control-id == IDLISTCTRL) But I need LVN_GETDISPINFO with id of custom control IDC_CUSTOM1 (i.e. with control-id == IDC_CUSTOM1) How to modify CMultiColumnComboBox::ParentWndProc or MultiColumnComboBox::ListCtrlWndProc so that I get LVN_GETDISPINFO with ID of parent custom control and not of ListCtrl ? So I can distinguish LVN_GETDISPINFO message in case of multiple combos. Because I need to use multiple combos IDC_CUSTOM1 , IDC_CUSTOM2, IDC_CUSTOM3 etc. and each of them in virtual mode. Thank You. Anand

    C / C++ / MFC c++ help tutorial question

  • Showing virtual list/CListCtrl for CMyComboBox ? How to pass LVN_GETDISPINFO to form view ?
    A anand_study

    Naveen, Thanks a lot for helping. What I tried is: 1. Downloaded sample from following article and unzipped Multi column Combo box (2) (CodeGuru Article) http://www.codeguru.com/cpp/controls/combobox/multicolumncombos/article.php/c1819/ 2. Removed code which displays Multi-column Combo in toolbar (from Mainframe.h and Mainframe.cpp) as I don't need that 3. Added LVS_OWNERDATA style to defaultListControlStyle 4. Created new dialog resource (Set style to Child and Border None), and added custome control IDC_CUSTOM1 (class MultiColumnComboBox) 5. Created new view class CMyTestView (derived from CFormView) 5. Added protected member to CMyTestView ->> CMultiColumnComboBox m_combo; 6. void CMyTestView::OnInitialUpdate() { CFormView::OnInitialUpdate(); // subclassed custom control (as suggested in article) m_combo.SubclassDlgItem(IDC_CUSTOM1); // add columns to list // do not insert items in list (as it is virtual) CListCtrl* pList = m_combo.GetListCtrl(); pList->InsertColumn(0, _T("Col 1"), LVCFMT_LEFT, 100); pList->InsertColumn(1, _T("Col 2"), LVCFMT_LEFT, 100); } 8. To make view class as parent of list control, In CMultiColumnComboBox::OnInit() (where ListControl is created) I replaced following line // if( m_pListCtrl->Create(WS_BORDER|WS_CHILD|defaultListControlStyle, Crect(0,0,0,0), GetDeskTopwindow(), IDLISTCTRL) ) with if( m_pListCtrl->Create(WS_BORDER|WS_CHILD|defaultListControlStyle, Crect(0,0,0,0), this->GetParent(), IDLISTCTRL) ) 7. Then tried as you suggested in CMyTestView. In view, I am getting LVN_GETDISPINFO notification I am setting item text but list is not getting even single item I am unable to get data through LVS_GETDISPINFO to list of combo in form view. (i.e. I could use list of this combo in normal mode in my form but unable to get data from view in list of combo in virtual list mode) Please help...(Urgent help needed). I truly appreciate any idea/help. Anand

    C / C++ / MFC c++ help tutorial question

  • Showing virtual list/CListCtrl for CMyComboBox ? How to pass LVN_GETDISPINFO to form view ?
    A anand_study

    Thank you for helping. In fact, I am trying to use list of following multi-column combo control in virtual mode. Multi column Combo box (2) (CodeGuru Article) http://www.codeguru.com/cpp/controls/combobox/multicolumncombos/article.php/c1819/ What I tried is: 1. Added LVS_OWNERDATA style to defaultListControlStyle 2. Added my new view (CFormView) 3. Added custom control in view and subclassed (as suggested in article) for Multi column Combo Still I am unable to pass-on LVS_GETDISPINFO to my form view. (i.e. I could use list of this combo in normal mode in my form but unable to use it in virtual mode) Please help...(Urgent help needed). How to pass-on LVS_GETDISPINFO to my form view ? I truly appreciate any idea/help. Anand

    C / C++ / MFC c++ help tutorial question

  • Showing virtual list/CListCtrl for CMyComboBox ? How to pass LVN_GETDISPINFO to form view ?
    A anand_study

    Hi I have CMyComboBox derived from CComboBox. Using it in CMyFormView in VC++6/MFC/Win98/2K project. In my invoice form, I need to have multiple combos with 40000+ products. Virtual list for combo can make it possible. (multi column virtual list for combobox) What I am trying to achieve is : - show dynamically created CListCtrl* m_pMyListCtrl (with LVS_OWNERDATA) instead of default ListBox of CMyComboBox - that CListCtrl in virtual mode should get data from CMyFormView - same member of CMyFormView (CArray of products) used to show data in virtual list (m_pMyListCtrl) Problem is how to pass-on LVN_GETDISPINFO message from m_pMyListCtrl to CMyFormView so as to get item info (m_pMyListCtrl is dynamically created virtual list control - member of CMyComboBox). I truly appreciate any idea or help. Thanks Anand

    C / C++ / MFC c++ help tutorial question

  • Date Validation
    A anand_study

    A nice article on codeproject site, "editable date time control", using date time edit control and programmer is validating the date based on format, if you check his code, you may get idea about date validation from edit control. Anand

    C / C++ / MFC question

  • CheckBox in CDateTimeCtrl
    A anand_study

    If you wish, check BCGDateTime control, which is free on there site, you can download code and example, which may give you some idea. Anand

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