CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: sma

Page 1 of 20 1 2 3 4

Search: Search took 0.13 seconds.

  1. Replies
    1
    Views
    545

    Re: DLL Menu Item Update

    Resolved,
    I used the ON_UPDATE_COMMAND_UI_RANGE with a defined range of ID's, The application then uses a map of the menu ID's to enable the required processing to enable and disable the menu...
  2. Replies
    1
    Views
    545

    DLL Menu Item Update

    I have created a DLL to provide an extension to my application which adds several menu items to the SDI application's main menu. Can someone provide some information on how to update these items. ...
  3. Replies
    1
    Views
    1,608

    Re: CMFCToolBarComboBoxButton Update

    Resolved this issue by Invalidating the toolbar after changing the control.
  4. Replies
    1
    Views
    1,608

    CMFCToolBarComboBoxButton Update

    I have a CMFCToolbar containing a CMFCComboBoxButton which needs to be updated via a view. The view correctly updates the selection of the ComboBoxButton however the edit window is not updated until...
  5. Replies
    0
    Views
    750

    Windows Socket Implementation

    I am developing a program which uses windows sockets to obtain data from a server using the Modbus protocol. The server provides information in groups called menus. Each menu is displayed via a...
  6. Replies
    3
    Views
    3,973

    Re: CMFCToolBarComboBox Problems

    Resolved, the OnCommandUI handler was holding the control disabled, as the data contained within the control list was being updated at other points in the app.
  7. Replies
    3
    Views
    3,973

    Re: CMFCToolBarComboBox Problems

    Both ReplaceButton calls return 1 indicating the replacement of the first item with the specified identifier.
  8. Replies
    3
    Views
    3,973

    [RESOLVED] CMFCToolBarComboBox Problems

    The attached image show the two ComboboxButtons I have on my app CMFCToolbartoolbar.


    The first combo box functions correctly but the second does not operate with the drop down list element only...
  9. Replies
    14
    Views
    2,125

    Re: Printing support from my application

    It is extremely difficult to create a complete RTF rendering engine as the syntax if these files have many variations.

    I have attached a copy of the 2002 specification so you can see how RTF is...
  10. Replies
    14
    Views
    2,125

    Re: Printing support from my application

    The code I have does not complete templates as such, it is a set of classes designed to provide the necassary representation of my application data which is either a series of tables or formatted...
  11. Replies
    14
    Views
    2,125

    Re: Printing support from my application

    You have several options depending on the application frame work you have used:

    RTF - quite simple to implement if you use RichEdit control as this will read and write RTF directly however the...
  12. Re: MFC Dialog Based - GUI modification with text file

    The attached files were never intended to replace those in your project. They were provided as an example that worked for you to check your code against.

    Place a break point in your code and...
  13. Replies
    2
    Views
    640

    Re: Help With Switch Loop

    You need to remove the semi colon from the while statement.

    while (running == true);

    The semi colon indicates the effective end of the while loop in this case.
  14. Replies
    7
    Views
    1,185

    Re: reading a line from text file

    Is this to do with your previous post regarding the setting of controls using a text file if it is the code I attached to my last response reads the file and retreives the required data just fine.
  15. Re: MFC Dialog Based - GUI modification with text file

    Have had a look at your code and created a small project to prove your code.

    I have atteched the dialog code for your reference it seems to work when I change the file (diasabled and enabled...
  16. Re: MFC Dialog Based - GUI modification with text file

    Can you step through the code buy inserting a break point in the function that process the text file and confirm it is reading the data properly from the file and selecting the correct control.
  17. Re: MFC Dialog Based - GUI modification with text file

    Do the controls update when the button pressed?

    The only way to cause the updating would be when the file edit is complete to send a message to the dialog. This message could be a user defined...
  18. Re: MFC Dialog Based - GUI modification with text file

    I have down loaded your code.

    Looking at the IODlg.CPP code there is a function to respond to the Description Select button - CIODlg::OnDescSelect() is this the area of concern?

    Have You...
  19. Re: MFC Dialog Based - GUI modification with text file

    The example provided shows methods you can use to achieve what you want.

    Haven't you developed the code to read the file you containing the data describing the controls?

    The live updting of the...
  20. Re: MFC Dialog Based - GUI modification with text file

    Attached is a very simple dialog based application that dynamically changes the text on some buttons.

    Click on each button and see what happens.

    The buttons are intially set in the Oninitdialog...
  21. Re: MFC Dialog Based - GUI modification with text file

    I will generate a very simple dialog based app in Visual Studio 6.0 and attach it to my next post.

    This may take a couple of hours as I am busy at this point in time.
  22. Re: MFC Dialog Based - GUI modification with text file

    From your attached code:

    You have a dialog based application.

    What you need to do is provide your own OnInitDialog function depending on which version and IDE you are using you should be able...
  23. Re: MFC Dialog Based - GUI modification with text file

    You do not need to change your RC file.

    Look for examples of changing button text or static text dynamically in code guru which may make you understanding a bit clearer.

    Can you paste a bit of...
  24. Re: MFC Dialog Based - GUI modification with text file

    From your file I have selected IDC_OUT_0 = IN Conveyor

    1. Read the value for this control from the file.

    2.Create a pointer of appropriate type and set using GetDlgItem(IDC_OUT_0)); IDC_OUT_0...
  25. Re: Application Window Resizing by itself

    Resolved:

    The problem was caused by the calling of the lines:

    GetParentFrame()->RecalcLayout(TRUE);
    ResizeParentToFit(TRUE);

    In the OnInitialUpdate() handler for the view I was switching...
Results 1 to 25 of 494
Page 1 of 20 1 2 3 4





Click Here to Expand Forum to Full Width

Featured