Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: sanjay123
  • Order by date
  1. sanjay123

    Excel Object Hierarchy

    See http://support.microsoft.com/support/kb/articles/Q178/7/49.ASP
  2. sanjay123

    How do I make graphs?

    I would advise you to use OCX control readily available for Graphs it pretty simple to use one can draw graphs of various types with less trouble I had used Pinnacle Graph control which had come with VB6.0 package
  3. sanjay123

    serial comms

    I would advise use to use MSComm Control I have used it for to interface Energy meter with PC. It is pretty simple will save lot of your efforts. Plenty of material is available on MSComm Control
  4. sanjay123

    OnKeyDown() Problems

    You can handle messages in PreTranslateMessage BOOL CXXXX::PreTranslateMessage(MSG* pMsg) { // TODO: Add your specialized code here and/or call the base class switch (pMsg->message) { case WM_RBUTTONDOWN: m_XXX.OnRClick(); return TRUE; case WM_KEYDOWN: do something...
  5. sanjay123

    SetTimer() help

    The third parameter in SetTimer specifies the address of the application-supplied TimerProc callback function that processes the WM_TIMER messages. If this parameter is NULL, the WM_TIMER messages are placed in the application's message queue and handled by the CWnd object. viz you can call...
  6. sanjay123

    Display unicode strings in Win95/98

    In Project seetings in C++ Tab include directive'_UNICODE' in Preprocessors Edit Box
  7. sanjay123

    Display unicode strings in Win95/98

    In Project seetings in C++ Tab include directive'_UNICODE' in Preprocessors directive for VC++
  8. sanjay123

    Edit Boxes

    In the MFC resource for your Edit control properties check Multiline button for styles.
  9. sanjay123

    background color in a edit ctrl

    I had earlier faced similar problems here is the way by which I resolved it. Depending on Value of m_nErrorColor I change the Background color of My Edit box for showing Warnings and Error and here m_ErrorEditCtrl is my Edit Ctrl for showing errors. I change the back gournd of Edit Box in...
  10. sanjay123

    CString converstion

    I think strings need to be converted into numerical values int x = atoi(szText.Mid(0,2)); int y = atoi(szText.Mid(2,2)); int z = atoi(szText.Mid(4)); incase of Unicode Strings better use mfc Macro's int x = atoi(W2A(szText.Mid(0,2))); int y = atoi(W2A(szText.Mid(2,2))); int z =...
  11. sanjay123

    String to CTime conversion

    To Add to my earlier entry You can also use controls provided by differnet Vendors or use Microsofts Date Time Picker control( MSCOMCT2.OCX) it comes with VC6.It also has good look and feel. Hope this helps
  12. sanjay123

    String to CTime conversion

    Yes it is possible to force the user to enter value say day, month and Year but you will have to validate. See COleDateTime class for 32 bit and CTime class for 16 bit these classes are very simple easy to use.
  13. sanjay123

    dialogs

    I think it is Simple Try this Say you have class CTestDialog CTestDialog : public CDialog { public: -- -- private: CString m_StrTestValue; } CChildDialog : public CDialog { public: CString m_strEditValue; private: CEdit m_EditCtrl; .. .... .... } if you do not want to use DDX then use...
  14. sanjay123

    Using OnCtlColor problems

    Oh! Sorry I forgot to Mention m_ErrorEdit and m_ErrorColor Actually that time m_ErrorEdit is derived from CEdit class to show Error/Warnings with appropriate color. m_ErrorColor is integer defined to hold colors. Anyhow hope this helps in resolving your problem.
  15. sanjay123

    Using OnCtlColor problems

    I had a similar problem here I am posting the code as how I resolved it HBRUSH CActiveChildDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) { HBRUSH hbr = IOrderEntryDlg::OnCtlColor(pDC, pWnd, nCtlColor); // TODO: Change any attributes of the DC here if (nCtlColor ==...
  16. sanjay123

    OCX controls and VC++

    In VC++ 6.0 IDE click on Project -> Add to Projects -> Components and Controls and then open Registered ActiveX Controls then Insert the required control. Note your Control should be registered first you can do that by either double clicking on your .OCX file or using regsrv32. This will...
  17. sanjay123

    Edit Box

    you can use CWnd's SetWindowText("Hello") function. you can call this function on your Button's event.
  18. sanjay123

    how to put combo, check box, radio button

    In the OnInitDialog() method of your dialog you can do intializations.<br>You can use SetCurSel(int Index) method to select any item by default. Their are several ways to do this here i will give you one example.<br><br> int index =...
  19. sanjay123

    Importing dialogs

    Open one project in Visual Studio click Resource tab in Workspace then open another projects .rc file using file open. You can do copy and paste now.

Part and Inventory Search

Back
Top