Click here to Skip to main content
15,915,319 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: insert elements in order??? Pin
Paul M Watt2-Feb-02 17:41
mentorPaul M Watt2-Feb-02 17:41 
GeneralRe: insert elements in order??? Pin
2-Feb-02 17:52
suss2-Feb-02 17:52 
GeneralRe: insert elements in order??? Pin
Paul M Watt2-Feb-02 18:53
mentorPaul M Watt2-Feb-02 18:53 
Generallooking for a program Pin
A.D2-Feb-02 15:15
A.D2-Feb-02 15:15 
GeneralRe: looking for a program Pin
antoine@orchus-tech2-Feb-02 16:59
antoine@orchus-tech2-Feb-02 16:59 
GeneralRe: looking for a program Pin
A.D2-Feb-02 17:26
A.D2-Feb-02 17:26 
GeneralRe: looking for a program Pin
moliate4-Feb-02 12:09
moliate4-Feb-02 12:09 
GeneralList Control Space Bug Pin
Swinefeaster2-Feb-02 14:55
Swinefeaster2-Feb-02 14:55 
I've got a file browsing list control inside a custom Outlook Control. The problem is that when I remove all the items in the list control and fill them with a new list (as in the user selects a different folder to browse), a bunch of blank space gets left at the top. Below is a screenshot:


(dunno why this image doesn't want to display)

This seems about the same amount of space as the scroll offset before the list items were updated. I've tried a calling a bunch of functions to see if I can get rid of this, but can't. (The attemps are shown below under the //!!! part.

void
cPkpPhotoListControl::OnRightClick(NMHDR* pNMHDR, LRESULT* pResult)
{
cResId PopupMenuResId = GetPopupMenuResId();

//!!!
CListCtrl::SetWorkAreas(0, NULL);
CListCtrl::Arrange(LVA_ALIGNTOP | LVA_ALIGNLEFT);
CListCtrl::SetWorkAreas(0, NULL);
SetScrollPos(SB_VERT, 0);

if(!PopupMenuResId.IsVoid())
{
cPoint ScreenPoint;
GetCursorPos(&ScreenPoint);

//!!!!
cPoint sss = ScreenPoint;
ScreenToClient(&sss);

cWindowHelper Helper(this);
Helper.HandlePopupMenu(PopupMenuResId, ScreenPoint);
}


*pResult = 0;
}

Now I've hooked this into the right mouse click handler so I they are called whenever I hit the right mouse button (just for debugging).

I've also tried clicking the top of this space, and that point comes out as near 0 in client coordinates, so I know that white space is part of the list control. I can also drag a selection box in this white space.

Anyone have any ideas? Any other commands I can try?

Cheers,

Check out Aephid Photokeeper, the powerful digital
photo album solution at www.aephid.com.


Check out Aephid Photokeeper, the powerful digital
photo album solution at www.aephid.com.
QuestionWTL::CDragListBox Example? Pin
Henry Jacobs2-Feb-02 13:07
Henry Jacobs2-Feb-02 13:07 
Generalmultiple windows in MFC C++ Pin
2-Feb-02 10:51
suss2-Feb-02 10:51 
GeneralRe: multiple windows in MFC C++ Pin
Mazdak2-Feb-02 10:57
Mazdak2-Feb-02 10:57 
GeneralRe: multiple windows in MFC C++ Pin
2-Feb-02 11:20
suss2-Feb-02 11:20 
GeneralRe: multiple windows in MFC C++ Pin
Mazdak2-Feb-02 11:56
Mazdak2-Feb-02 11:56 
GeneralRe: multiple windows in MFC C++ Pin
Mazdak2-Feb-02 12:13
Mazdak2-Feb-02 12:13 
GeneralRe: multiple windows in MFC C++ Pin
2-Feb-02 12:18
suss2-Feb-02 12:18 
GeneralRe: multiple windows in MFC C++ Pin
alex.barylski2-Feb-02 13:19
alex.barylski2-Feb-02 13:19 
QuestionUsing CMsFlexGrid on other machines (without visual c++ installed)? Pin
DanYELL2-Feb-02 9:15
DanYELL2-Feb-02 9:15 
AnswerRe: Using CMsFlexGrid on other machines (without visual c++ installed)? Pin
Mazdak2-Feb-02 10:36
Mazdak2-Feb-02 10:36 
AnswerRe: Using CMsFlexGrid on other machines (without visual c++ installed)? Pin
Mazdak2-Feb-02 10:44
Mazdak2-Feb-02 10:44 
GeneralCalendar Week Problem Pin
Sonu Kapoor2-Feb-02 8:51
Sonu Kapoor2-Feb-02 8:51 
GeneralRe: Calendar Week Problem Pin
wangyiming3-Feb-02 21:51
wangyiming3-Feb-02 21:51 
QuestionHow to use point to member function? Pin
Feng Qin2-Feb-02 7:27
Feng Qin2-Feb-02 7:27 
AnswerRe: How to use point to member function? Pin
Michael Dunn2-Feb-02 7:40
sitebuilderMichael Dunn2-Feb-02 7:40 
GeneralRe: How to use point to member function? Pin
Feng Qin2-Feb-02 18:08
Feng Qin2-Feb-02 18:08 
GeneralRe: How to use point to member function? Pin
Feng Qin2-Feb-02 19:23
Feng Qin2-Feb-02 19:23 

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.