Click here to Skip to main content
15,888,301 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: creating toolbar for IE Pin
SandipG 5-Mar-09 22:16
SandipG 5-Mar-09 22:16 
GeneralRe: creating toolbar for IE Pin
Ash_VCPP5-Mar-09 22:19
Ash_VCPP5-Mar-09 22:19 
AnswerRe: creating toolbar for IE Pin
Hamid_RT6-Mar-09 0:25
Hamid_RT6-Mar-09 0:25 
Questionwhat is "commit storage" any way? Pin
JackPuppy5-Mar-09 21:09
JackPuppy5-Mar-09 21:09 
AnswerRe: what is "commit storage" any way? Pin
Eytukan5-Mar-09 22:39
Eytukan5-Mar-09 22:39 
GeneralRe: what is "commit storage" any way? Pin
JackPuppy5-Mar-09 23:22
JackPuppy5-Mar-09 23:22 
QuestionResizing CListCtrl Pin
grassrootkit5-Mar-09 20:49
grassrootkit5-Mar-09 20:49 
AnswerRe: Resizing CListCtrl Pin
SandipG 5-Mar-09 21:04
SandipG 5-Mar-09 21:04 
Check SetWindowPos[^] documentation.


grassrootkit wrote:
m_cMyList.SetWindowPos(NULL,0,0,rc.right,rc.bottom,1);


Here instead of NULL you should specify &CWnd::wndTop because it seems that it is the only control on your dialog.

Also last parameter instead of 1 pass SWP_SHOWWINDOW i am not sure 1 is defined for which constant.


grassrootkit wrote:
GetClientRect(&rc);


You do not need this instead you can use cx,cy parameters. I think you doing this because first time when you get the WM_SIZE notification these values are zero. You can simply put a check for that instead of that call.

Also when you resizing the window in OnSize always verify the m_cMylist has valid handle and it is visible. This should be done because WM_SIZE notification is sent multiple times when the main window is being created.
I hope it helps.

Regards,
Sandip.

GeneralRe: Resizing CListCtrl Pin
grassrootkit5-Mar-09 21:54
grassrootkit5-Mar-09 21:54 
GeneralRe: Resizing CListCtrl Pin
Code-o-mat5-Mar-09 22:47
Code-o-mat5-Mar-09 22:47 
GeneralRe: Resizing CListCtrl Pin
SandipG 5-Mar-09 23:05
SandipG 5-Mar-09 23:05 
GeneralRe: Resizing CListCtrl Pin
Code-o-mat5-Mar-09 23:10
Code-o-mat5-Mar-09 23:10 
QuestionProblem with a CFont class Pin
prithaa5-Mar-09 20:48
prithaa5-Mar-09 20:48 
AnswerRe: Problem with a CFont class Pin
Cedric Moonen5-Mar-09 21:07
Cedric Moonen5-Mar-09 21:07 
GeneralRe: Problem with a CFont class Pin
prithaa5-Mar-09 22:03
prithaa5-Mar-09 22:03 
QuestionHow to make an HttpRequest for a file which is on the server from client... Pin
siva4555-Mar-09 20:35
siva4555-Mar-09 20:35 
AnswerRe: How to make an HttpRequest for a file which is on the server from client... Pin
Swapnil Shah5-Mar-09 20:48
Swapnil Shah5-Mar-09 20:48 
GeneralRe: How to make an HttpRequest for a file which is on the server from client... Pin
siva4556-Mar-09 0:31
siva4556-Mar-09 0:31 
GeneralRe: How to make an HttpRequest for a file which is on the server from client... Pin
Swapnil Shah6-Mar-09 2:03
Swapnil Shah6-Mar-09 2:03 
GeneralRe: How to make an HttpRequest for a file which is on the server from client... Pin
siva4556-Mar-09 18:54
siva4556-Mar-09 18:54 
AnswerRe: How to make an HttpRequest for a file which is on the server from client... Pin
David Crow6-Mar-09 3:26
David Crow6-Mar-09 3:26 
QuestionHow to make a color to checkbox and radion button. Pin
tgm.arjun095-Mar-09 20:28
tgm.arjun095-Mar-09 20:28 
AnswerRe: How to make a color to checkbox and radion button. Pin
«_Superman_»5-Mar-09 20:34
professional«_Superman_»5-Mar-09 20:34 
GeneralRe: How to make a color to checkbox and radion button. Pin
tgm.arjun0911-Mar-09 21:21
tgm.arjun0911-Mar-09 21:21 
Questionhow to convert CString to char*[]? Pin
AnithaSubramani5-Mar-09 20:28
AnithaSubramani5-Mar-09 20:28 

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.