|
That is a good suggestion which i have tried already.
I would like to set the characters typed by the user restricted to AlphaNumeric characters so that all other special characters and key strokes are not accepted by the edit control in the property page.
Any idea how this can be done.
laiju
|
|
|
|
|
Look list below. I don't remember exact name of functions, but be cariful some of this functions don't use locale to identify is for example "." in non english language dot or could be letter.
Routine Character test condition
isalnum, iswalnum, _ismbcalnum Alphanumeric
isalpha, iswalpha, _ismbcalpha Alphabetic
__isascii, iswascii ASCII
iscntrl, iswcntrl Control
__iscsym Letter, underscore, or digit
__iscsymf Letter or underscore
isdigit, iswdigit, _ismbcdigit Decimal digit
isgraph, iswgraph, _ismbcgraph Printable other than space
islower, iswlower, _ismbclower Lowercase
_ismbchira Hiragana
_ismbckata Katakana
_ismbclegal Legal multibyte character
_ismbcl0 Japan-level 0 multibyte character
_ismbcl1 Japan-level 1 multibyte character
_ismbcl2 Japan-level 2 multibyte character
_ismbcsymbol Nonalphanumeric multibyte character
isprint, iswprint, _ismbcprint Printable
ispunct, iswpunct, _ismbcpunct Punctuation
isspace, iswspace, _ismbcspace White-space
isupper, iswupper, _ismbcupper Uppercase
iswctype Property specified by desc argument
isxdigit, iswxdigit Hexadecimal digit
mblen Return length of valid multibyte character; result depends on LC_CTYPE category setting of current locale
Alex
|
|
|
|
|
How can I create a CEdit with verical editing of the text. Changes to a vertical font hasn't an effect.
Best regards,
Eugene Pustovoyt
ICQ UIN: 161325180
|
|
|
|
|
what do you want to do ? turn the font to the left, or just write one char per row ???
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
I want turn the font to the 90 degree.
Best regards,
Eugene Pustovoyt
ICQ UIN: 161325180
|
|
|
|
|
Eugene, what cool hack are you working on now?
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
Hi Ravi,
Now I'm create a CTabCtrl class. And I'm need in-place edit for the vertical and horizontal caption of the tab.
Best regards,
Eugene Pustovoyt
ICQ UIN: 161325180
|
|
|
|
|
Cool! Perhaps you'll consider posting it at CP? (I can give you my 5 now).
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
Thanks. Now I should use you as a beta-tester for it
Best regards,
Eugene Pustovoyt
ICQ UIN: 161325180
|
|
|
|
|
Please could someone help me.
All I'm trying to do is send Ctrl Alt and Del in my code, but really struggling!
Could someone help me. Sample code would be nice.
Really appreciate any help.
Thanks.
Rich
|
|
|
|
|
Try [SendInput] api!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
What are you trying to accomplish?
Lock workstation:
Check LockWorkStation
Log off/Shutdown/restart:
Check ExitWindowsEx
Or for the joy of sending Ctrl Alt Del:
Check SendMessage & PostMessage
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
I've created a On-Screen keyboard.
I want to use it to Logon to windows. So I've created a CAD button.
But really struggling? Tried several methods but no success.
Thanks for any help
Rich
|
|
|
|
|
Ctrl-Alt-Del is a special key sequence in the NT kernel.
Search the MSDN for GINA.
Kelly Herald
Software Developer
MPC
|
|
|
|
|
Thanks for all your help
Regards
Rich
|
|
|
|
|
I would like to add a small text entry on the continuation of the menu bar under MFC. To do this I need to get a handle to the Menu bar.
Is there a way to do this, or is there some other way to add a small text entry after the menu items?
Thanks,
Ilan
|
|
|
|
|
|
I want to make Window application with Boehm GC.
I can build well when I make it in a console application.
The following errors come out when they make it in Window application.
Please teach a method to make in Window application .
Thank you very much.
-----------------------------------
Error contents
There is not the function that was able to leave overload to have three arguments by a New operator
-----------------------------------
class hoe : public gc
{
public:
char p[0x100];
};
void CTest3Dlg::OnButton1()
{
while(1){
hoe *h = new hoe ;
}
}
|
|
|
|
|
Well, this is going to blow out your stack in a few seconds, why do you want to do that ?
Try hoe * h = new hoe(); Your error message makes no sense though, your compiler is getting very confused, if this is all of the code.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Movement environment
Environmental VC++ V6.0 SP4 (japanese)
Boehm GC V6.4 http://www.hpl.hp.com/personal/Hans_Boehm/gc/
>Well, this is going to blow out your stack in a few seconds,
>why do you want to do that ?
If Boehm GC works normally, memory leak cannot occur.
>Try hoe * h = new hoe();
An error to compile (+_+;;
>Your error message makes no sense though, your compiler is
>getting very confused, if this is all of the code.
Translation seems to have been bad.
Just.
The compile error is "error C2661: 'new' : no overloaded function takes 3 parameters"
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#include "stdafx.h"
#include "test3.h"
#include "test3Dlg.h"
#define GC_NOT_DLL
#include gc_cpp.h
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
class hoe : public gc
{
public:
char p[0x100];
};
void CTest3Dlg:: OnButton1()
{
hoe *h = new hoe() ;
}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Thank you very much.
|
|
|
|
|
I was able to build when I made the following orders comment out.
-----------------------------------------------------
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
-----------------------------------------------------
However, an error to build at the following points of CArray is given this time.
-----------------------------------------------------
m_pData = (TYPE*) new BYTE[nNewSize * sizeof(TYPE)];
d:program filesmicrosoft visual studiovc98mfcincludeafxtempl.h(330) : error C2665: 'new[] '
d:program filesmicrosoft visual studiovc98mfcincludeafxtempl.h(1566): 'void __thiscall CArraystruct tagTCmtYka,struct tagTCmtYka:: SetSize(int,int) '
-----------------------------------------------------
TYPE* pNewData = (TYPE*) new BYTE[nNewMax * sizeof(TYPE)];
d:program filesmicrosoft visual studiovc98mfcincludeafxtempl.h(370) : error C2665: 'new[] '
d: program filesmicrosoft visual studiovc98mfcincludeafxtempl.h(1566): 'void __thiscall CArraystruct tagTCmtYka,struct tagTCmtYka:: SetSize(int,int)
-----------------------------------------------------
|
|
|
|
|
I'm curious of how to paint the CTreeCtrl transparently, this means how to create a CTreeCtrl in existed view without cover its content.
just like CATIA's GUI, but I'm frustrated, I have no idea.
Best Regards
|
|
|
|
|
The tree control does not draw transparently. If you wish to make it appear otherwise, there are two feasible ways of doing so:
1) draw it yourself, and do it transparently. The control has a rich custom drawing API, and this is actually not too hard. The downside is, there's the possibility you'll forget to draw something correctly in an uncommon situation, or a new (or old) version of the tree will draw itself in a significantly different manner, leaving your custom-draw code producing very odd results.
2) let the tree draw itself onto an in-memory bitmap, then draw this bitmap to the screen while masking out the background color. This can be slower, and you really have to work to handle all the places where the tree tries to draw itself (hint: disable animated expand/collapse), but should be fairly bullet-proof once you're done with all that.
You must be careful in the forest
Broken glass and rusty nails
If you're to bring back something for us
I have bullets for sale...
|
|
|
|
|
I'll try to fullfill it, thanks for your helpful ideas.
Best Regards
|
|
|
|
|
Hi all,
I have a dll and an exe that calls that dll.
I want to find out which are the functions implemented in the dll and which are their parameters in order to use it with a project that I will develop.
Any idea about how to do it? Is there any tool?
Thanks in advance
|
|
|
|