Click here to Skip to main content
15,904,500 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CAsyncSocket will recv all packets in one recv? Pin
6-Feb-02 22:16
suss6-Feb-02 22:16 
GeneralRe: CAsyncSocket will recv all packets in one recv? Pin
Peter Weyzen7-Feb-02 10:10
Peter Weyzen7-Feb-02 10:10 
Generalconverting Pin
6-Feb-02 13:26
suss6-Feb-02 13:26 
GeneralRe: converting Pin
Christian Graus6-Feb-02 13:51
protectorChristian Graus6-Feb-02 13:51 
GeneralRe: converting Pin
Paul M Watt6-Feb-02 14:21
mentorPaul M Watt6-Feb-02 14:21 
GeneralRe: converting Pin
Paul M Watt6-Feb-02 18:13
mentorPaul M Watt6-Feb-02 18:13 
GeneralRe: converting Pin
Tim Smith6-Feb-02 15:05
Tim Smith6-Feb-02 15:05 
GeneralMoving Controls on a Dialog Pin
John Clump6-Feb-02 12:31
John Clump6-Feb-02 12:31 
Hi everyone. I have a few buttons on a dialog, and when the window resizes, I want the buttons to stay at a fixed distance from the bottom of the dialog window's client area.

<br />
CRect rect;<br />
GetClientRect(rect);<br />
// put 40 pixels up from bottom of screen<br />
rect.bottom -= 40<br />
GetDlgItem(IDC_BTN_ADDITEM)->MoveWindow(rect);<br />

I even tried making the button a variable, and tried doing m_btnAddItem.MoveWindow(rect), and it also caused the same assertion.

When the code executes, I get an assertion error in winocc.cpp, line 279, below

<br />
void CWnd::MoveWindow(int x, int y, int nWidth, int nHeight, BOOL bRepaint)<br />
{<br />
	ASSERT(::IsWindow(m_hWnd));<br />
...<br />
}<br />
<br />
Can anyone tell me the proper way to move the control, so it does not assert? Thanks in advance!

GeneralRe: Moving Controls on a Dialog Pin
Joaquín M López Muñoz6-Feb-02 12:35
Joaquín M López Muñoz6-Feb-02 12:35 
GeneralRe: Moving Controls on a Dialog Pin
John Clump6-Feb-02 14:48
John Clump6-Feb-02 14:48 
GeneralRe: Moving Controls on a Dialog Pin
Josh Koppang6-Feb-02 12:42
Josh Koppang6-Feb-02 12:42 
GeneralRe: Moving Controls on a Dialog Pin
Josh Koppang6-Feb-02 12:49
Josh Koppang6-Feb-02 12:49 
GeneralRe: Moving Controls on a Dialog Pin
John Clump6-Feb-02 16:19
John Clump6-Feb-02 16:19 
GeneralRe: Moving Controls on a Dialog Pin
Josh Koppang6-Feb-02 23:39
Josh Koppang6-Feb-02 23:39 
GeneralRe: Moving Controls on a Dialog Pin
John Clump7-Feb-02 17:46
John Clump7-Feb-02 17:46 
GeneralRe: Moving Controls on a Dialog Pin
jagadish bharath2-Aug-02 0:47
jagadish bharath2-Aug-02 0:47 
GeneralFirst word Pin
6-Feb-02 12:05
suss6-Feb-02 12:05 
GeneralRe: First word Pin
Michael Dunn6-Feb-02 12:03
sitebuilderMichael Dunn6-Feb-02 12:03 
GeneralRe: First word Pin
Josh Koppang6-Feb-02 12:16
Josh Koppang6-Feb-02 12:16 
GeneralRe: First word Pin
Joaquín M López Muñoz6-Feb-02 12:18
Joaquín M López Muñoz6-Feb-02 12:18 
GeneralMem leak detection Pin
alex.barylski6-Feb-02 11:57
alex.barylski6-Feb-02 11:57 
GeneralRe: Mem leak detection Pin
Joaquín M López Muñoz6-Feb-02 12:10
Joaquín M López Muñoz6-Feb-02 12:10 
GeneralRe: Mem leak detection Pin
alex.barylski6-Feb-02 12:34
alex.barylski6-Feb-02 12:34 
GeneralError reading standard string resources Pin
6-Feb-02 10:41
suss6-Feb-02 10:41 
GeneralRe: Error reading standard string resources Pin
Joaquín M López Muñoz6-Feb-02 11:50
Joaquín M López Muñoz6-Feb-02 11:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.