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

Search:

Type: Posts; User: RCFox

Page 1 of 20 1 2 3 4

Search: Search took 0.18 seconds.

  1. Replies
    5
    Views
    2,496

    Re: Help with CStatic derived class

    Wait. I don't think the answer to my question is "yes". The background color of the larger CStatic rectangle (with checkbox) first appears at app startup set to RGB(60,60,60). That's what I coded it...
  2. Replies
    5
    Views
    2,496

    Re: Help with CStatic derived class

    Sorry about the poor resolution of this image, but you can see that the code works for the little user-drawn CStatic which displays the text "Settings", but the code has no effect within the larger...
  3. Replies
    5
    Views
    2,496

    Re: Help with CStatic derived class

    I appreciate it, though my main dialog's ON_WM_CTLCOLOR() doesn't have wParam or lParam as parameters. Maybe it's because I'm using MFC. I don't know.

    It tried the following in ON_WM_CTLCOLOR() :...
  4. Replies
    5
    Views
    2,496

    Help with CStatic derived class

    I have Dialog based app.

    I have a derived class for my modified CStatic control.

    It this classes' cpp, I implement the following:

    void CCheckBoxBmpStatic::PreSubclassWindow()
    {...
  5. Re: ReadFile in Serial Communications and GetLastError(): 998 (ERROR_NOACCESS) error

    I've since found a web page that gives a great sample/tutorial for serial port communications. The explanations are complete. It's easy to include in your project, and it works great.

    Here's the...
  6. Replies
    2
    Views
    616

    Sharing controls' data between views

    I have an SDI application which has 2 views (CFormView). The app needs to switch back and forth between the 2 views while working with the same document.

    Both views have the same 50+ controls,...
  7. Replies
    2
    Views
    580

    Re: Quick questions about

    Thank you. I just needed to be sure.
  8. Replies
    2
    Views
    580

    Quick questions about

    I've added a queue to my project... basically this...


    #include <queue>
    using namespace std;

    class CDataQueue
    {
    private:
    queue<CString> m_myQueue;
  9. Re: How to resize MainFrame so the View fits in?

    I hope I explain this correctly (and briefly :) )

    Igor, your code works great for me, in properly sizing the mainframe to fit my view(s).

    It's also useful when the user changes his/her screen...
  10. Replies
    4
    Views
    1,156

    Re: Problem resizing mainframe

    I think so.... or thought so.

    I was resizing my view (form), per the user's screen resolution, using SetWindowPlacement(). The view resizes correctly, but the mainframe didn't.

    Earlier today, I...
  11. Replies
    4
    Views
    1,156

    Re: Problem resizing mainframe

    It's included in my OnInitialUpdate() just after I resize the view.

    Apparently, in OnInitialUpdate(), my resizing isn't taken into account during the subsequent call of ResizeParentToFit().
    ...
  12. Replies
    4
    Views
    1,156

    Problem resizing mainframe

    I have an SDI CFormView derived application.

    In my CView, the form is resized dependent on the user's PC screen resolution. It works well for the view itself.

    But... if the screen resolution is...
  13. Replies
    3
    Views
    1,008

    Re: Problem coding C# in .NET MF

    Years ago, I paid Microsoft for a phone call. I called them with some problem I'd had.

    I'm willing to try that again, as long they supply me with the correct answer.

    Once I run into a problem...
  14. Replies
    3
    Views
    1,008

    Re: Problem coding C# in .NET MF

    Hi, thanks. That should work, but...

    no matter what order I put the bytes in, connect() throws the socket exception: Error 10047: An address incompatable with the requested protocol.

    I cannot...
  15. Replies
    3
    Views
    1,008

    Problem coding C# in .NET MF

    I'm programming an embedded device, using C# within .NET Micro Framework.

    In employing connect(), the only information I have on that call is:

    public static void connect(int socket, byte[]...
  16. Replies
    4
    Views
    903

    Re: Windows Messages question

    Thank you, MikeAThon. Yes, my CWinThread is a "UI" thread, and has a message pump.

    Yours and MrViggy's responses are helpful. It makes sense, too. Upon further thought, a thread's coding could be...
  17. Replies
    4
    Views
    903

    Re: Windows Messages question

    Thanks.
    In my case, OnReceive() and OnSend() aren't in the main thread. They're in a CWinThread which I use to handle the CAsyncSocket. CWinThread does have a message pump, though.
  18. Replies
    4
    Views
    903

    Windows Messages question

    Although my question specifically deals with CAsyncSockets, this a very basic question about when Windows Messages can execute.

    Does a user function need to complete before a Windows message is...
  19. Replies
    3
    Views
    733

    Re: Separate OnReceive calls

    Thank you. I appreciate your time.

    I'd been aware that sends could be split, but it had never occurred to me that they could be combined into one OnReceive() call. This area is somewhat new to me....
  20. Replies
    3
    Views
    733

    Separate OnReceive calls

    I'm using CAsyncSocket inside an MFC UI-thread in my peer to peer application. In using my app, there will only be two PCs communicating.

    What surprises me is that if I send 2 pieces of data, one...
  21. Replies
    5
    Views
    1,052

    Re: My Moaning and Groaning Thread

    Yes. I do have anti-virus installed. That could be it ! Thank you !

    As far as "Hex" suddenly becoming part of my menu, I wonder if there's a configuration file which I managed to mess up. :)
  22. Replies
    5
    Views
    1,052

    Re: My Moaning and Groaning Thread

    Oh yeah, and now the word "Hex" appears in my IDE menu now.
    I have no idea where it came from.



    http://img.photobucket.com/albums/v721/Rusty909/Hex.jpg



    ~
  23. Replies
    5
    Views
    1,052

    My Moaning and Groaning Thread

    Hi,

    I don't know where else to moan and groan...

    My moaning and groaning is caused by the fact that I don't create the thread hightlighted below with blue text. At least, to the best of my...
  24. Replies
    3
    Views
    989

    Re: Listening for only one address

    Thanks. That does make sense.

    I was (and am) confused about the purpose and use of the AsyncSocket::Create() lpszSockAddress parameter.

    I'm glad you mentioned: " You'll have to define...
  25. Replies
    3
    Views
    989

    Listening for only one address

    I'm writing a fairly simple server app. The app will know, ahead of time, the one and only IP address that it wants to listen for.

    I'm using CAsyncSocket.

    I have to assume that other IP...
Results 1 to 25 of 481
Page 1 of 20 1 2 3 4





Click Here to Expand Forum to Full Width

Featured