|
not directly...
edit.SetFont(somefont);
edit.SetPasswordChar(whatever); <- it crashes here
edit.SetPasswordChar(whatever);
edit.SetFont(somefont);<- it crashes here
edit.SetPasswordChar(whatever); <- works ok, no SetFont around
i check now if the subclassing is the reason...
wait a moment...
|
|
|
|
|
Ah, i see. Where do you perform all this? I mean, the subclassinc of the edit and the rest? I mean, in what method, at what event...?
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <
|
|
|
|
|
in OnInitDialog...
i've rewritten a little class to encapsulate this problem, it looks like a WindowsCE-Problem...
in Win32 works fine...
edit:
give up...
in pocketpc-emulator it works always fine :-|
it must be devicedependend or a devicemistake...
|
|
|
|
|
If your edit control is set to multiline, that could be the problem. MSDN states that SetPasswordChar is not supported on multi-line edit controls.
Karl - WK5M
PP-ASEL-IA (N43CS)
PGP Key: 0xDB02E193
PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193
|
|
|
|
|
MSDN says the Function has on effect in multineedit...
i test it...
edit: tested, but no effect
|
|
|
|
|
Here's a quote from MSDN:
Remarks
When a password character is set, that character is displayed for each character the user types.
This member function has no effect on a multiple-line edit control.
When the SetPasswordChar member function is called, CEdit will redraw all visible characters using the character specified by ch.
If the edit control is created with the ES_PASSWORD style, the default password character is set to an asterisk (*). This style is removed if SetPasswordChar is called with ch set to 0.
For more information, see EM_SETPASSWORDCHAR in the Platform SDK.
Karl - WK5M
PP-ASEL-IA (N43CS)
PGP Key: 0xDB02E193
PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193
|
|
|
|
|
grandmasta1 wrote: edit->SetPasswordChar(0x25CF); // --> stack fault
I'm not sure how Windows CE treats char. But try using some simple char like '*' first.
|
|
|
|
|
has no effect - SetPasswordChar requieres a TCHAR as parameter
|
|
|
|
|
Windows CE only supports Unicode.
So all string MUST be L"" and all characters are 2 bytes.
«_Superman_»
|
|
|
|
|
i know...
0x25CF are 2 bytes, or not?
ans strings with L"" or _T("") or TEXT("")...
there is a single Character as parameter required in TCHAR-Format...
the app works in emulator, it must be devicedependend...
on an other device the app has no problem and works...
thanx
|
|
|
|
|
grandmasta1 wrote: If i don't use SetFont...it works fine...
Since the edit control is just going to show a * anyway, why does it need a different font?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
i change the fontsize to fit in the control...
|
|
|
|
|
i change the fontsize to fit in the control...
e.g. from size 8 to 15 - and the oher edit controls have size 15
looks not so fine, if the passwordcontrol has only size 8
if i use '*' as default, the access violation occurs if i set a new font.
if the flag ES_PASSWORD or a PassworChar is set and i try to set a new font the access violation is always generated...
i have no idea...
|
|
|
|
|
Using CHeaderCtrl and ClistCtrl, I am displaying some data in a grid format.
But while moving the horizontal scroll bar the header data is not displaying.But data in the grid is displaying.
Is there is any method to refresh the header data while scrolling.
Please help..
Regards
Deepu
|
|
|
|
|
Did you maybe set the WS_CLIPCHILDREN style on the list control? I have seen that resulting in the header not getting drawn in various situations. Anyways, you could try subclassing your list, handling WM_HSCROLL, relaying it to the superclass and then invalidating the header control, maybe it helps, but imho your header should get displayed by default if you do scrolling, so there must be something influencing the workings of the list control.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <
|
|
|
|
|
The 1st is with setsockopt , and the 2nd is with Ioctlsocket .
Have they to be consistent?
|
|
|
|
|
Hi there.
I just want to get .pdf file related inforamtion like Title, Author, Subject, Keywords, Created, Modified etc.
1. Do we have Windows APIs for the same?
2. Or I need to use Adobe provided APIs. In case Adobe APIs, then can someone please suggest some pointer in regard to Adobe APIs to do the job.
Thanks & Regards
PanB
|
|
|
|
|
For Modified Date and Time I can use _strtime(timebuf) and _strdate(datebuf) APIs. Any pointers for Title, Author, Subject, Keywords will be helpful...Thanks
|
|
|
|
|
The information you desire can easily be obtained by calling StgOpenStorageEx() , and then getting an IPropertyStorage interface.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Windows has no PDF APIs.
Here's a link[^] to the Adobe PDF SDK - you need a license from Adobe to use that.
There are other alternatives - Google for "PDF SDK".
If you were using Mac OS X, you could be using PDFKit[^] - PDF support is built into OS X.
|
|
|
|
|
Thanks. Anyway, like we can get file info. using Windows API, Can't we use Windows APIs to get info. for .pdf file. They are also files...I mean if I can get its modified date/time using Windows APIs then there should be some way to get rest of the information. Just want to know about this for knowledge purpose.
|
|
|
|
|
As Stuart said there is no native Windows API to read a .pdf file. As it's an Adobe file format and not a Microsoft format why would there be?
Date and time info is common to all files in the file system so there are API ways to read and write it. The data you're looking for is specific to Adobe's pdf format, so you'll need to look elsewhere like the links Stuart gave to find a way to programatically read it.
|
|
|
|
|
BonshatS wrote: The data you're looking for is specific to Adobe's pdf format...
No, it's part of the compound document interface.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
My mistake.
|
|
|
|
|