Questions tagged [cwnd]

CWnd Class is part of MFC library and provides the base functionality of all window classes.

CWnd Class is part of MFC library and provides the base functionality of all window classes.

A CWnd object is distinct from a Windows window, but the two are tightly linked. A CWnd object is created or destroyed by the CWnd constructor and destructor. The Windows window, on the other hand, is a data structure internal to Windows that is created by a Create member function and destroyed by the CWnd virtual destructor.

73 questions
0
votes
1 answer

CWnd::OnCreate function never get called

Overview: I have 2 utilities and both have same common interface i.e. open a dialog box to "request for username". The code for "requesting username" is written in different library and both these utilities call that library . ISSUE: In 1 utility…
samprat
  • 2,150
  • 8
  • 39
  • 73
0
votes
1 answer

verify chages in Initial congestion window

I am trying see the effects of changing Initial CWND of my server.This given here.To confirm this whether its changed to value I have set.I am referring this.But I am not able to see any changes.By default after linux 2.6.38 the default InitCWND is …
0
votes
1 answer

Congestion Control Algorithm at Receiver

Assume we talking about the situation of many senders sending packets to a receiver. Often senders would be the one that control congestion by using sliding window that limits sending rate. We have: snd_cwnd = min(cwnd,rwnd) Using explicit or…
Tai Nguyen
  • 165
  • 5
  • 13
0
votes
2 answers

Why paint messages get lost even after calling UpdateWindow()?

I have an application with following windows hierarchy: W1 -W2 (Child of W1) - W3 ( Child of W2) --------------------| | W1|------------| | | |W2 |------| | | | | |W3 | | | | | |------| | | | |------------| |…
aJ.
  • 34,624
  • 22
  • 86
  • 128
0
votes
0 answers

Can we disable or make a dialog box modal if it is modeless?

I have an application, which has a search button and a spreadsheet where the searched item is placed. Now the search button causes a "Search" dialog box to pop up which is modeless, hence meaning that one can still work on the spreadsheet. If one…
user1693086
0
votes
2 answers

What MFC class should I base free floating views on

I have a dialog based MFC application. Now I want to create a wiew (one or more) with a toolbar, scroll bars and a client window (based on CWnd). What MFC class should I base this window on? What is the best way to do it? Thanks.
0
votes
1 answer

MFC - round button

I'd like to add round button to my application. It should behave as regular push button. I could not find any existing code. Are there any ready solutions? There would be no problem for me to prepare it by myself, but I would need a recepie which…
Michał Walenciak
  • 4,257
  • 4
  • 33
  • 61
0
votes
1 answer

How Create derived from CWnd POP UP Window?

I created class CSurfaceWnd from CWnd by Class Wizard. I tried to create window but getting error. That's my code of creating: if(!m_pSurfaceWnd) { CString m_NameClass = AfxRegisterWndClass( CS_VREDRAW | CS_HREDRAW, …
user1711993
  • 271
  • 4
  • 20
0
votes
1 answer

CWnd::GetParent causes an exception

I am trying to call the function GetParent() of CWnd class. Every time there is an exception thrown. I'm calling the function from a working thread. This is the line that causes the exception: CWnd* parent = this->GetParent(); I've also tried…
g-los
  • 33
  • 1
  • 7
0
votes
1 answer

How to hide description area of CBCGPPropList?

Now I am using CBCGPPropList of CBCGToolBar within MFC, but I don't know how to add a CBCGPGridCtrl into CBCGPPropList, so I have to leave it outside. But the description area looks ugly between them: :( Is there any way to add a Table-like…
Al2O3
  • 3,103
  • 4
  • 26
  • 52
0
votes
1 answer

Can I attach a CBitmapButton to a parent CWnd, instead of a parent CDialog?

I have inherited a project (originally written for Win95!) which has a number of buttons attached to a parent window derived from CWnd. The buttons themselves are in a user-defined class derived from CWnd, so they are not "real" buttons, but little…
Ken
  • 369
  • 3
  • 15
0
votes
1 answer

How can I get a window handle of the CWnd object in Delphi?

I have Epic Editor which returns a handle to the window (see Java code from plugin_1 below): int handle = com.arbortext.epic.Application.getActiveWindow().getNativeHandle(); In fact, this handle is CWnd * pointer. Its direct transfer to the native…
ilya
  • 1,103
  • 14
  • 36
-1
votes
1 answer

TCP Congestion Window Size Too Large?

I try to emulate a network comprised of 2 host and 1 switch using Mininet. One host is a sender, sending packets continuously to the other host (receiver) by using iperf…
Tai Nguyen
  • 165
  • 5
  • 13
1 2 3 4
5