|
i trie dto reead that file
time.Read(str,10);
it is showing error cannot convert Cstring to void
thank u,
sree.
|
|
|
|
|
sree_as wrote: i try to write the index in the file after thtai wnat to open it on initdialog.
CFile time;
char Pbuf[2];
time.Write(pbuf,2);
you can use INI file for storing these type of configuration! http://www.codeproject.com/cpp/CIni.asp[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
i tried this not working
thank u
sree.
|
|
|
|
|
sree_as wrote: tried this not working
what have you tried, could i have look at that!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
_AnShUmAn_ wrote: The next time you open your dialog set the item to which the index points to.
but you should sure that equal number of item present at next time!, better to store String Name
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
where you save combobox value that when you reopen dialog it reads this value?
whitesky
|
|
|
|
|
i canot understand how to use MapWindowPoints.so please tell how to use this with a\small example.
thank u,
sree.
|
|
|
|
|
If hwnd1 or hwnd2(or both) are mirrored windows (that is, have WS_EX_LAYOUTRTL extended style), MapWindowPoints will automatically adjust mirrored coordinates if you pass two or less points in lpPoints.
RECT rect[10];
for(int i =0; i < (sizeof(rect)/sizeof(rect[0])); i++)
{
MapWindowPoints(hWnd1, hWnd2, (LPPOINT)(&rect[i]), (sizeof(RECT)/sizeof(POINT)) );
}
//where hwnd1,hwnd2 are handle to the mirrored windows
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
What a help to copy the MSDN site text here. Jesus totally useless answer.
|
|
|
|
|
So you waited almost fifteen years, just to insult someone.
|
|
|
|
|
hi!
i want the initalize the Crect variable to some values.
i want rect to be 420*560 how can i get.
little bit urgent.
please,
sree.
|
|
|
|
|
CRect rect( 0, 0, 420 , 560 );
nave
|
|
|
|
|
thak u it's working
sree.
|
|
|
|
|
Right from the DOCS:
CRect(
int l,
int t,
int r,
int b
) throw( );
CRect(
const RECT& srcRect
) throw( );
CRect(
LPCRECT lpSrcRect
) throw( );
CRect(
POINT point,
SIZE size
) throw( );
CRect(
POINT topLeft,
POINT bottomRight
) throw( );
You can use what suits you.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
-- modified at 2:46 Saturday 17th June, 2006
|
|
|
|
|
sree_as wrote: hi!
i want the initalize the Crect variable to some values.
i want rect to be 420*560 how can i get.
You can change your Rect dynamically using SetRect as following
CRect rect;
rect.SetRect(0,0, 420, 560);
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
Again a query 'query'!!
Am i using the Delete query prop here?rather can i use it lik dis?(Hvalue is of number type in Access db)
CString hv;
_Commandptr m_pCommand;
m_pCommand=NULL;
m_pCommand.CreateInstance(__uuidof(Command));
CString strSql = _T("DELETE FROM wcs WHERE Hvalue='") +hv+ _T("')");
m_pCommand->CommandText = _bstr_t(strSql);
m_pCommand->CommandType=adCmdText;
m_pCommand->ActiveConnection = m_pConnection;
_variant_t vRecords1;
m_pCommand->Execute(&vRecords1,NULL,adCmdText);
|
|
|
|
|
Using the foll code..How do i retrieve the min value?how do i get to know to which record(in Access db) contains the result??(Hvalue is a number)
_Commandptr m_pCommand;
m_pCommand=NULL;
m_pCommand.CreateInstance(__uuidof(Command));
CString strSql1 = _T("SELECT MIN(Hvalue) FROM wcs");
m_pCommand->CommandText = _bstr_t(strSql1);
m_pCommand->CommandType=adCmdText;
m_pCommand->ActiveConnection = m_pConnection;
_variant_t vRecords;
m_pCommand->Execute(&vRecords,NULL,adCmdText);
|
|
|
|
|
Hi
I have a Slider Control on a Dialog Box.I want to Change the BackGround Color of Dialog Box whenever the Slider is scrolled.Could anyone point out how to achieve this?
Any Sample code wud do fine....
thanx in advance
"Every morning I go through Forbes list of 40 richest people in the world. If my name is not in there, I go to work..!!!"
-- modified at 1:27 Saturday 17th June, 2006
|
|
|
|
|
QuickDeveloper wrote: I have a Slider Control on a Dialog Box.I want to Change the BackGround Color of Dialog Box whenever the Slider is scrolled.Could anyone point out how to achieve this?
-Set the range of the Slider as 0-255
-Invalidate the rect in Slider position change notification
-create the brush using the slider pos in OnPaint message and fill the Client area Rect of the Dialog.
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
A_Laxmancreate the brush using the slider pos in OnPaint message and fill the Client area Rect of the Dialog.
I tried that way but the screen flickers a lot and also i don't want to call OnPaint , so i would prefer some other alternative like WM_CTLCOLOR or WM_ERASEBKGND.I want some sample code.
"Every morning I go through Forbes list of 40 richest people in the world. If my name is not in there, I go to work..!!!"
|
|
|
|
|
HBRUSH CtestMFCDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)<br />
{<br />
HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);<br />
return CreateSolidBrush(RGB(0,0,0));
}
Try the above code you will get the idea what to do next
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
|
We tried the code and the background is changing but the Controls are not visible..how to overcome this problem?
thanx for the reply...
"Every morning I go through Forbes list of 40 richest people in the world. If my name is not in there, I go to work..!!!"
|
|
|
|
|
Can you show your code how to use that controls are invisible
whitesky
|
|
|
|
|
I want to know how to find out the files which are actually visible in a CFileDialog window at a time.
The files which can be seen at a time without scrolling the List View.
I have attached an image which shows the files that are visible in th
e list view.
|
|
|
|