Click here to Skip to main content
15,909,578 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: GDI+ DrawImage() Speed Issue Pin
Redeye9220-Feb-09 0:15
Redeye9220-Feb-09 0:15 
GeneralRe: GDI+ DrawImage() Speed Issue Pin
Nishad S20-Feb-09 0:29
Nishad S20-Feb-09 0:29 
GeneralRe: GDI+ DrawImage() Speed Issue Pin
Redeye9220-Feb-09 0:54
Redeye9220-Feb-09 0:54 
AnswerRe: GDI+ DrawImage() Speed Issue Pin
Stuart Dootson20-Feb-09 2:40
professionalStuart Dootson20-Feb-09 2:40 
GeneralThe Solution Pin
Redeye9220-Feb-09 3:29
Redeye9220-Feb-09 3:29 
GeneralRe: The Solution Pin
micahferguson28-Feb-09 9:53
micahferguson28-Feb-09 9:53 
GeneralRe: The Solution Pin
Redeye921-Mar-09 21:46
Redeye921-Mar-09 21:46 
QuestionAttempting to get 'Desktop PIDL' on Win2k, Win98 - Bizarre behavior Pin
ab4rum19-Feb-09 21:03
ab4rum19-Feb-09 21:03 
Hi everybody,
can anyone help me ?
i'm developing a MFC Dialog based app on multi OS, which can simulate 'Windows Desktop' upto limited functionalities,
using Shell API, IContexMenu etc. With the help of CListCtrl (with Icon view) and CImageList, a Windows Desktop
has been prepared

For Context menu & PIDL, it works all fine on WIn XP,
however, on Win2k & Win98 whenever right-clicking onto non-iconic area (Desktop PIDL), my program raise error.
While debugging (& through logging), came to know that my code failed to find Desktop PIDL.
It failed at IShellFolder::GetUIObjectOf() in getting IContextMenu.
hr = m_pshObject->GetUIObjectOf (NULL, 1, (LPCITEMIDLIST *) m_pIDList, IID_IContextMenu, NULL, (void**) &InvokCmd);

Let me just elaborate through step-wise:

1). All these operation i'm performing onto 'my simulated Windows desktop'

2). To bring about the solution, hardcoding for the
Win98 desktop path C:\Windows\Desktop and for
Win2k C:\Documents and Settings\administrator\Desktop for conveting it into Desktop PIDL
Although after that, it could sucessfully displayed context-menu for desktop.

3). But when attempting to Copy-Paste operation, that is, copy any file/folder by Right-click on it,
and choose 'Paste' operation by right-click on desktop (my simulated Windows desktop),
my program performs bizarre behavior.Confused | :confused:

4). It made a new file/folder, and lable it 'Desktop' and for file-copying it shows with Windows default icon

5). One more thing, while tracing Log, analyzing for desktop PIDL i observed;Suspicious | :suss:
m_pIDList[0]- AppName: Desktop, AppFullPath: C:\Documents and Settings\Admin\Desktop\Desktop
in path, it shows desktop twice ...

i can't figure out how it behaves as such, while it performing nice on XP

Thanks a lot for help !

ab4rum
AnswerRe: Attempting to get 'Desktop PIDL' on Win2k, Win98 - Bizarre behavior Pin
Stuart Dootson20-Feb-09 2:59
professionalStuart Dootson20-Feb-09 2:59 
Questionhow to set sound output in left or right side of headphone? Pin
nekokan19-Feb-09 20:06
nekokan19-Feb-09 20:06 
AnswerRe: how to set sound output in left or right side of headphone? Pin
Nishad S20-Feb-09 0:00
Nishad S20-Feb-09 0:00 
QuestionRenaming solution file in vc++ Pin
priyankapriyanka19-Feb-09 19:04
priyankapriyanka19-Feb-09 19:04 
AnswerREPOST: ANSWERED Yesterday! Pin
_AnsHUMAN_ 19-Feb-09 19:13
_AnsHUMAN_ 19-Feb-09 19:13 
AnswerRe: Renaming solution file in vc++ Pin
Chandrasekharan P19-Feb-09 19:32
Chandrasekharan P19-Feb-09 19:32 
GeneralRe: Renaming solution file in vc++ Pin
priyankapriyanka19-Feb-09 22:30
priyankapriyanka19-Feb-09 22:30 
GeneralRe: Renaming solution file in vc++ Pin
Chandrasekharan P19-Feb-09 23:43
Chandrasekharan P19-Feb-09 23:43 
AnswerIt's also time to rename your post. Pin
CPallini19-Feb-09 21:53
mveCPallini19-Feb-09 21:53 
Questionlogging optimization. Pin
vikramlinux19-Feb-09 19:00
vikramlinux19-Feb-09 19:00 
AnswerRe: logging optimization. Pin
KarstenK19-Feb-09 23:24
mveKarstenK19-Feb-09 23:24 
AnswerRe: logging optimization. Pin
Nishad S20-Feb-09 0:03
Nishad S20-Feb-09 0:03 
GeneralRe: logging optimization. Pin
vikramlinux25-Feb-09 18:23
vikramlinux25-Feb-09 18:23 
GeneralRe: logging optimization. Pin
Nishad S25-Feb-09 19:04
Nishad S25-Feb-09 19:04 
Questionmsnp 15 contact management source code Pin
amit090219-Feb-09 17:55
amit090219-Feb-09 17:55 
AnswerRe: msnp 15 contact management source code Pin
Cedric Moonen19-Feb-09 20:21
Cedric Moonen19-Feb-09 20:21 
QuestionRe: msnp 15 contact management source code Pin
amit090219-Feb-09 23:17
amit090219-Feb-09 23:17 

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.