|
Take a look at Simple MAPI[^]
CPUA 0x5041
Sonork 100.11743 Chicken Little
"So it can now be written in stone as a testament to humanities achievments "PJ did Pi at CP"." Colin Davies
Within you lies the power for good - Use it!
|
|
|
|
|
Thank You Very Much, I have decided to use Simple MAPI and currently amon the way trying to implemement it. Once it works i will let you know.
|
|
|
|
|
|
Hi,
I will switch to GSM programming, it's accept messages from PC through GSM tech. I was wonding which API or MFC should be used.
Thanks in advance.
Extreme programming. Do the No.1
|
|
|
|
|
stevenson wrote:
I will switch to GSM programming
Cool, I think, until I read
it's accept messages from PC through GSM tech. I was wonding which API or MFC should be used.
Huh? You really expect CP people to 1) know what API your target phone platform supports, and 2) any phone supplier being dumb enough to implement MFC in their phone OS?!
Maybe you should first get a grip on what you're supposed to do, and then, maybe, there might be some MSVC/Win32 issues we can help with?
|
|
|
|
|
depending on my knowledge
people always use pc send messages through some GSM sender, which connects to pc. the other job is operate the sender through com2 or com1
is it?
|
|
|
|
|
Hello,
I respond to a LVN_KEYDOWN event (List View in column mode) and if the user presses enter, I call another function with the following code. When this occurs, there is the audible beep. I don't want the beep. When I call this same code from the OnRButtonDown() (user presses right mouse button) there is no audible beep. I didn't find any documentation in CMenu that would help me determine why there is a beep. My assumption is that the "enter" key is still in some buffer, and the TrackPopupMenu thought it was an invalid selection?? Any thoughts on how to get rid of the beep?
menu.CreatePopupMenu();
int levels = GetDocument()->m_nPriorityLevels-1;
for (i=levels;i>=0; i--) {
menu.AppendMenu(0, IDC_PRI_0+i, GetDocument()->m_sPriority[i]);
}
menu.TrackPopupMenu(TPM_RIGHTBUTTON, pt.x, pt.y, this);
thanks!
JennyP
|
|
|
|
|
In the function that handles LVN_KEYDOWN have you tried changing the return value when Enter is handled by your code. Notification functions use *lParam for this if my memory serves me correctly.
Neville Franks, Author of ED for Windows. www.getsoft.com
Make money with our new Affilate program
|
|
|
|
|
Thank you for the suggestion. This doesn't seem to solve the issue. The beep occurs (according to debugger) when I call:
menu.TrackPopupMenu(TPM_RIGHTBUTTON, pt.x, pt.y, this);
JennyP
|
|
|
|
|
It is probably the KeyUp message which is causing the beep. ie. It is going to the Menu. Have you tried using NM_RETURN instead. Failing that you could add a PeekMessage loop and wait for the KeyUp message before calling TrackPopupMenu.
Neville Franks, Author of ED for Windows. www.getsoft.com
Make money with our new Affilate program
|
|
|
|
|
Has anyone else tried the new CHTMLEditView class in MFC 7.0?? I have been trying to use its method GetDocumentHTML(), which basically takes the HTML of the browser document and puts it in a CString. I find I get access violation errors when I use the method, especially when I have previously pasted in a large amount of text.
I thought it must be me, but I then went to look at the sample Microsoft includes with Visual C++ .Net Standard, called HTMLEdit. I was able to reproduce the same error there, erroring on the one call there is to GetDocumentHTML().
I would be interested in knowing if anyone else has had this problem. How does one notify Microsoft about such an issue??
Paul Trimming
|
|
|
|
|
trimtrom wrote:
I find I get access violation errors when I use the method,
Me too. Navigating URLs often throws such exceptions. I am not sure about it at that point, but I believe that's because of IE being used as an ActiveX instead of a stand alone app. There are a lot of other known side effects too.
|
|
|
|
|
Thanks for your reply. I am relieved that you get the same error!
Have you got any suggestions for curing the problem, or is it beyond help?
Hopefully,
trimtrom
|
|
|
|
|
I am trying to write an application that takes an input of .ppm files and filters the image according to RGB values. The CBitmap class provided by C++ doesn't account for the different displays on different computers, so when I open a .ppm file on my application, the colors in the pictures are wrong. Is there some sort of routine which can take into account of all the different types of display format on the computer screen (eg. 16 bit color, 8 bit color, true color etc)?
|
|
|
|
|
M Lai wrote:
. Is there some sort of routine which can take into account of all the different types of display format on the computer screen
Yes, and IIRC it's called ICM (Installable Color Mapping I believe). It's not something you want to casually do, but it seems you need it.
Note: You'd obviously need minimum 24-bpp displays for this. If not, you could just use plain windows color mapping, of which there are numerous MSDN and Win32 SDK examples).
|
|
|
|
|
Sorry, but I am a bit lost on this. What part of the library are the ICM routines, and how would I use it?
|
|
|
|
|
Sorry, but I am a bit lost on this. What part of the library are the ICM routines, and how would I use it?
|
|
|
|
|
Hi,
I want my MyView to appear at x,y = 1,20 and be 1280
pixels wide and 800 high when it initially appears.
I believe this is the code to move and size it ...
<br />
CFrameWnd* pParentFrame = GetParentFrame();<br />
ASSERT_VALID( pParentFrame ); <br />
pParentFrame->MoveWindow( 1, 20, 1280, 800 );<br />
... but what method should I put this code in?
If I put in MyView::OnDraw everytime the View
needs to be re-drawn it moves and resizes. I
just want it start and 1,20 initially.
|
|
|
|
|
You can set the initial size/position in PreCreateWindow() .
--Mike--
When 900 years old you reach, look as good you will not. Hmm.
1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
ok i'd like to do either one of the following:
1) have like 4 or 5 different views (an text view should be able to be splitted in 1 or 2 or 4 panes or such) and be able to switch between those views
this i have done except for the splitter, and since splitterwnd isn't a View, i can't AddView it, and since the insidep views of the splitter ARE views, i dont know how to handle those, can someone help??
2) have one splitter which can split 1, 2 or 4 panes, and be able to change between a text view and a couple of other views... this seems easier but then again, i have a button bar control that changes the views, and i'd like if anyone could help me figure out how to manage that
also the problem is that there's a lot more views now, and i'm a complete mess with figuring out how to deal with those
really, im in search of an example of view-switching w/ splitters or an MFC pro to give me some help w/ figuring out how to manage the views in some of these cases
and i have already tried various MSDN samples, the two SwitchToView examples on CodeProject, etc. but have had no luck because of the splitter
- Roman -
|
|
|
|
|
Hello,
How can i get the list of files from a path ?
for example: C:\Ali
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
In MFC you can use CFileFind class to fill the list using FindFile, FindNextFile methods.
In WIN32 use the API functions FindFile and FindNextFile.
Pavel
Sonork 100.15206
|
|
|
|
|
Thanks alooot
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
I have list of a big object.The approximate elements of this list is expected to the tune of 10,000,000-99,000,000.
Now if I have to use only part of this big list in another object.
Would it be advisable to use a list of pointers to this list section or use a list of the index values of the section?
It sounds confusing !!
Inshort how much memory does a pointer takes? Is it dependent on the size of the object being pointed to?
How much memory does a pointer need? like an integer needs 1 byte etc....
|
|
|
|
|
Anonymous wrote:
how much memory does a pointer takes?
in Win32, the pointer itself takes 4 bytes (32 bits).
I'm not the droid you're looking for.
|
|
|
|