|
I'm not sure how you are implementing the check...(i.e. whether it is as the user is typing or during string validation) so this may not be what you are looking for...
// If you are validating each character
int isdigit( int c ); // isdigit returns a non-zero value if c is a decimal digit (0 – 9).
or you can make the CEdit control numeric only.
|
|
|
|
|
for a 16, 24 or 32 bits-count bitmap, is their data in following format?
16 bits:
5-5-6 = r-g-b or b-g-r?
24 bits:
8-8-8 = r-g-b or b-g-r?
32 bits:
what is its format?
any docs or links about the format?
includeh10
|
|
|
|
|
1) 16 and 24 bit bitmaps
The format of these changes depending on the hardware or the specification of the bitmap, the ones I found most common are the ones you mentioned, and in RGB order.
2) 32 bit
32 bit is usually either RGBA, ARGB, BGRA; in 8888 format.
For converting all the formats a useful reference is the Allegro (now obselete) game programming library:
http://www.talula.demon.co.uk/allegro/[^]
|
|
|
|
|
what does A in RGBA mean?
thx
includeh10
|
|
|
|
|
A is the Alpha channel. In film and other applications this refers to the intensity of the combined RGB colour, but in graphics it is usually used for blending purposes - the higher the alpha value, the more significance the colour has over others.
|
|
|
|
|
Hi,
I need your help. Do you know any fine C++ class for asynchronnous HTTP download, except MFC CAsyncMonikerFile? Please help me.
|
|
|
|
|
|
I have a dialog box with several controls and I'm creating one control(Combobox) at runtime. I would like to set the focus for this control. Is there a way to change the tab order programmaticaly and set the focus to this control at runtime?
Thanks
|
|
|
|
|
changing the tab order programmaticaly, nop
setting the foccus at runtime, like this :
if using MFC, do this :
pMyControl->SetFocus();
with pMyControl that is a pointer to the control. for example :
CButton* pButton = (CButton*)GetDlgItem(IDC_MY_BUTTON);
understand ?
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
To change the tab order of controls, you have to use the SetWindowPos() function. The hWndInsertAfter parameter is used to set the tab order. Just specify in this parameter the HWND of the window(control) that you want the control you are setting to follow.
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" mYkel - 21 Jun '04
Within you lies the power for good - Use it!
|
|
|
|
|
Hello!
My Problem is, that the Tabbed Rebar is as long as my Main Window. But I want that the tabbed rebar has a with of x=200 and height of y=100. How can I do that manuelle?
here is the link to the example:
http://www.codeproject.com/docking/TabedReBar.asp
thank you in advanced
|
|
|
|
|
I am developing a project using UDP protocol. How i can record sound and play from the server through my client machine. Please do reply asap.
** A Fighter Never Loses !!!!
|
|
|
|
|
there are quite a few example projects here on CP.com, use the search fnuction
modified 12-Sep-18 21:01pm.
|
|
|
|
|
i need tools which can read resource info of exe (or/and dll) files.
if more than one on the internet, please comment the "best" one you think for me.
thx
includeh10
|
|
|
|
|
|
I called FindFirstFile with the search mask "*.m3u" and it finds a file with extension ".mp3~" (i.e. with a tilda at the end)
Is this a bug in FindFirstFile, or am I doing something wrong?
|
|
|
|
|
No I don't think so,Could you show me your coding for that here !!!
-----------------------------
"I Think this Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
WIN32_FIND_DATA findFileData;
HANDLE hSearch;
wxString strMask, strHit, strDiff;
strMask = "F:\\mp3\\Downloaded\\AC DC\\*.mp3";
hSearch = ::FindFirstFile(strMask, &findFileData);
while (hSearch != INVALID_HANDLE_VALUE)
{
strHit = findFileData.cFileName;
}
::FindClose(hSearch);
this will return a hit for any file with extension .mp3~ in said directory
|
|
|
|
|
|
It's the string class from the wxWidgets library
|
|
|
|
|
try to debug the it what exactly extension it has taken
i run this on my pc with CString its working fine
|
|
|
|
|
It doesn't make any difference what string class you use. The bug is in FindFirstFile.
|
|
|
|
|
Please I'd like to know the syntax in using WM_GETTEXT() , for use in retreiving text from an edit box. Where should this syntax be used?
|
|
|
|
|
it you know the ID of the Edit Box use
GetDlgItemText api
-----------------------------
"I Think this Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
Many (actually most) Windows API calls that operate on windows work by sending the target window a message. WM_GETTEXT is the message sent to retrieve a window's text. Both these code fragments will get the edit control's text:
char szText [TEXTLEN];
HWND hWndEdit = window handle of edit control;
::GetWindowText (hWndEdit, szText, TEXTLEN - 1);
char szText [TEXTLEN];
HWND hWndEdit = window handle of edit control;
::SendMessage (hWndEdit, WM_GETTEXT,
(WPARAM) TEXTLEN - 1,
(LPARAM) szText);
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|