Click here to Skip to main content
15,910,981 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CFrameWnd :: OnBarCheck Pin
Jake Palmer3-Aug-01 11:30
Jake Palmer3-Aug-01 11:30 
QuestionAdd Users/Groups dialog box? Pin
2-Aug-01 13:36
suss2-Aug-01 13:36 
AnswerRe: Add Users/Groups dialog box? Pin
Not Active2-Aug-01 13:48
mentorNot Active2-Aug-01 13:48 
GeneralRe: Add Users/Groups dialog box? Pin
2-Aug-01 14:03
suss2-Aug-01 14:03 
GeneralRe: Add Users/Groups dialog box? Pin
Serge A. Zhirko2-Aug-01 21:08
Serge A. Zhirko2-Aug-01 21:08 
GeneralRe: Add Users/Groups dialog box? Pin
3-Aug-01 18:08
suss3-Aug-01 18:08 
GeneralResizing Pin
John Uhlenbrock2-Aug-01 12:57
John Uhlenbrock2-Aug-01 12:57 
GeneralRe: Resizing Pin
Derek Waters2-Aug-01 13:30
Derek Waters2-Aug-01 13:30 
The problem is that the HWNDs aren't associated with your member variables until after the window is created, but the form receives a resize before this association. Another WM_SIZE is sent after creation, so the easiest way to fix this problem is:


CSomeClass::OnSize(....)
{
if (m_ctrlListBox.GetSafeHwnd() != NULL)
{
m_ctrlListBox.MoveWindow(....);
}
}


See how that goes. Hope it helps!


------------------------
Derek Waters
derek@lj-oz.com
GeneralRe: Resizing Pin
John Uhlenbrock3-Aug-01 7:03
John Uhlenbrock3-Aug-01 7:03 
GeneralRe: Resizing Pin
Derek Waters5-Aug-01 13:42
Derek Waters5-Aug-01 13:42 
GeneralSending a message though a Win32 program Pin
(Steven Hicks)n+12-Aug-01 12:47
(Steven Hicks)n+12-Aug-01 12:47 
GeneralRe: Sending a message though a Win32 program Pin
Baafie2-Aug-01 14:12
Baafie2-Aug-01 14:12 
GeneralRe: Sending a message though a Win32 program Pin
Not Active2-Aug-01 14:16
mentorNot Active2-Aug-01 14:16 
GeneralRe: Sending a message though a Win32 program Pin
(Steven Hicks)n+12-Aug-01 14:53
(Steven Hicks)n+12-Aug-01 14:53 
GeneralRe: Sending a message though a Win32 program Pin
3-Aug-01 1:49
suss3-Aug-01 1:49 
GeneralRe: Sending a message though a Win32 program Pin
Not Active3-Aug-01 18:06
mentorNot Active3-Aug-01 18:06 
GeneralRe: Sending a message though a Win32 program Pin
4-Aug-01 8:59
suss4-Aug-01 8:59 
GeneralRe: Sending a message though a Win32 program Pin
Fariborz4-Aug-01 9:39
Fariborz4-Aug-01 9:39 
Generalistringstream >> string help Pin
Todd Smith2-Aug-01 12:07
Todd Smith2-Aug-01 12:07 
GeneralRe: istringstream >> string help Pin
Ben Burnett2-Aug-01 17:03
Ben Burnett2-Aug-01 17:03 
GeneralRe: istringstream >> string help Pin
Joaquín M López Muñoz2-Aug-01 22:11
Joaquín M López Muñoz2-Aug-01 22:11 
GeneralKeyboard Input Repeator Pin
2-Aug-01 11:34
suss2-Aug-01 11:34 
GeneralRe: Keyboard Input Repeator Pin
2-Aug-01 14:23
suss2-Aug-01 14:23 
GeneralRe: Keyboard Input Repeator Pin
3-Aug-01 15:55
suss3-Aug-01 15:55 
GeneralSerial Numbers Pin
Mike Doner2-Aug-01 11:15
Mike Doner2-Aug-01 11:15 

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.