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

C / C++ / MFC

 
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 
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 
Sorry, I meant for it to be this:

if(::IsWindow(GetDlgItem(IDC_BTNADDITEM)->m_hWnd))
MoveWindow(rect, TRUE);

Are you calling it from OnSize? I did this in my own code, and when it is resized when it is initially displaying it, I guess it doesn't have an m_hWnd. If it still doesn't work, use class wizard to create a class for it (control class) then use that to get the m_hWnd

Josh
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 
GeneralRe: Error reading standard string resources Pin
Josh Koppang6-Feb-02 12:39
Josh Koppang6-Feb-02 12:39 
GeneralSimple string copying question Pin
RK_20006-Feb-02 10:02
RK_20006-Feb-02 10:02 
GeneralRe: Simple string copying question Pin
Carlos Antollini6-Feb-02 10:24
Carlos Antollini6-Feb-02 10:24 
GeneralRe: Simple string copying question Pin
CodeGuy6-Feb-02 10:30
CodeGuy6-Feb-02 10:30 

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.