|
GetCursorPos returns the mouse position in screen coordinates.
Try this:
<br />
CPoint point;<br />
GetCursorPos(&point);<br />
m_lstLeft.ScreenToClient(&point);<br />
UINT uFlags;<br />
int nIndex=m_lstLeft.HitTest(point,&uFlags);
- S
50 cups of coffee and you know it's on!
|
|
|
|
|
UpdateData(TRUE);
CString strDate=m_datetime.Format("%Y-%m-%d");
//do your stuff here
UpdateData(FALSE);
this code solve the problem of to convert mysql date format into vc++ date format but this is used to submit
now i want to fetch the date stord inot mysql table into MFC dialog box
then tel me code for this
gourav dogra jfjunf
|
|
|
|
|
gourav456 wrote: now i want to fetch the date stord inot mysql table into MFC dialog box
What part of this is troubling you? Retrieving date fields from a database is not unlike retrieving fields of other types. You just have to ensure that the variable you retrieve the field into is the correct type.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
plz send this as soon as possible
i submit date in mysql from mfc dialoog box into mysql table using
UpdateData(TRUE);
CString str=m_datetime.Format("%Y-%m-%d");
UpdateData(FALSE);
but now how i fetch date from mysql to display in mfc dialog box 's control
send me code
Please mailing me
|
|
|
|
|
yogendra kaushik wrote: but now how i fetch date from mysql to display in mfc dialog box 's control
Like has already been mentioned, retrieving a date field is done just like any other field. What exactly is the problem?
Use SetWindowText() to update a control's text value. This has been mentioned to you several times, too.
What does your CRecordset -derived class look like? Are you using a DSN-less connection?
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi,
following syntax has wszWallpaper as unicode string.
wcout << L"Wallpaper path is:\n " << wszWallpaper;
Now wallpaper path is prefixed with "L" to interpret the string as unicode.
can it be prefixed with "_T" as
wcout << _T"Wallpaper path is:\n " << wszWallpaper;
since TCHAR can be used to present ANSI as well as unicode.
Please follow up.
Leya
|
|
|
|
|
_T is a macro which needs parenthesis:
wcout << _T("Wallpaper path is:\n") << wszWallpaper;
|
|
|
|
|
yang__lee wrote: can it be prefixed with "_T" as
wcout << _T"Wallpaper path is:\n " << wszWallpaper;
actually, yes, but not like you do.
use _T macro like this :
wcout << _T("Wallpaper path is:\n ") << wszWallpaper;
BTW, be aware that TCHAR is defined as wchar_t when UNICODE is defined, ,but is defined to char only, if the project is building Single bytes strings...
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|
|
Hi Frends,
Windows 2000 architecture provides support for three kind of subsystems
1)Win 32 2)OS/2 3) POSIX .
Can anybody give me some examples ,where in OS/2 and POSIX subsystems are used in real world?
Thanks.
Appu..
"If you judge people, you have no time to love them."
|
|
|
|
|
|
Thanks Sarath for the help.
But in one seminar , i came to know that the Subsystem that is used in ATM machines is POSIX .It is not Win32.
Is there any such applications exist with OS/2 subsystem ??
Thanks.
Appu..
"If you judge people, you have no time to love them."
|
|
|
|
|
Hi to all,
I am using "WM ASF Writer" Filter for streaming videos in Network. But I dont want to write the file using this "WM ASF Writer" Filter. Plz. help me for that.
Thanks in advance.
Best Regards,
Aniket
|
|
|
|
|
Hi,
I want to apply XP theme to my program .
How can i do this?
I am using VC++6.0.
Thanx in advance.
-- modified at 2:33 Thursday 8th June, 2006
|
|
|
|
|
sruti_p wrote: How can i do this?
use SetWindowTheme
or Add a manifest file to the resources
nave
|
|
|
|
|
|
mail me i will send u the code.. The code contain some HTML tags.. So i coudn't post it here
nave
|
|
|
|
|
|
one way in your rc file add this code
CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST ".\\test.manifest"
test should replaced by name your project
whitesky
|
|
|
|
|
Hi all,
I need to change the font of Edit box ,
But I have no idea how to do it.PLz help.
Thanks to all
Saday
Saday Chand Sarkar
Trek Technology(s)Pte.Ltd.
|
|
|
|
|
use SetFont();
CEdit m;
m.SetFont();
whitesky
|
|
|
|
|
Use CFont;
CFont font.CreateFont(nFontSize, 0, 0, 0, FW_NORMAL, FALSE, FALSE,
FALSE, DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS,
DEFAULT_QUALITY, DEFAULT_PITCH|FF_DONTCARE, _T("Arial"));
Using object of Edit Ctrl call
SetFont()
Regards
Amar
|
|
|
|
|
or one good example see
<br />
CFont FontEdit;<br />
CFontDialog m_dlg;<br />
if(m_dlg.DoModal()==IDOK)<br />
{<br />
FontEdit.CreateFontIndirect(&m_dlg.m_lf);<br />
m_Edit.SetFont(&FontEdit);<br />
}<br />
whitesky
|
|
|
|
|
Yes I got .
Thanks a lot.
Saday Chand Sarkar
Trek Technology(s)Pte.Ltd.
-- modified at 3:04 Thursday 8th June, 2006
|
|
|
|
|
Hello everyone,
I am developing an application which contains a tree structure. The tree structure reflects the management structure of a big company -- child node represents the employees managed by direct manager (parent node), one parent node may have multiple (various) number of child nodes (employees he/she managed in his/her department).
I need to find all the employees a manager managed in the tree structure, the direct child node, the child node's child node, ... and so on (for example, if he is a senior manager, there are multiple levels of child nodes).
Currently, I am using brute force tree traverse approach to print all (direct and indirect) child nodes -- layer by layer. The tree is very large. I am wondering whether there are any good ideas about how to improve the search performance?
thanks in advance,
George
-- modified at 1:52 Thursday 8th June, 2006
|
|
|
|
|
just my problem is like once we point the item in the listbox in yahoomessenger we get the dialog and we get information about that particular id.how they getting
give me some idea to solve this problem.or send some sample code regarding this
thank u,
sree.
|
|
|
|