|
ShowWindow(hwnd, SW_SHOW);
This wont send a paint message?
SaRath.
"Where I am from, there is no plan B. So, take advantage of today becuase tomorrow is not promised. - 50 Cent"
<blink>My Blog | Understanding State Patte
|
|
|
|
|
ok ok I understood.
ShowWindow sends paint message only if required right?
this one makes sure that the window redraws when initialized right?
SaRath.
"Where I am from, there is no plan B. So, take advantage of today becuase tomorrow is not promised. - 50 Cent"
<blink>My Blog | Understanding State Patte
|
|
|
|
|
When you use CreateWindow it send a WM_CREATE message and if you use
WM_VISIBLE in createwindow then it sends all messages required
whitesky
|
|
|
|
|
whats this MAXDWORD?
How do I determine the values for COMMTIMEOUTS?
|
|
|
|
|
|
Is setting the ReadIntervalTimeout in COMMTIMEOUTS to MAXDWORD with zeros for both the ReadTotalTimeoutConstant and ReadTotalTimeoutMultiplier members correct? Can this setting of the SetCommTimeOuts be the problem for receiving the same packet everytime in my application.
This is with reference to my previous question posted an hr ago.
Can you help me with this please?
my previous question is :
I have established serial communication with RABBIT3000 (an 8 bit microcontroller).
The packet from the microcontroller is sent to the PC only on the PC demanding it. The demand is sent through one of the variables in the packet sent from PC.
When the PC receives packet from the microcontroller, it receives the correct packet for the first time. During my second request and further,
the Pc keeps receiving the same packet that it received first.
The packet from the microcontroller is updated on some conditions so that its different values in the packet memebers each time it is sent to teh PC on demand.
but when I try sending a different packet (microcontroller updates the packet structure members) to the PC, it still receives only the same packet that it received first and not the updated one.
I receive the packet using Readfile and store the values in a circular buffer.
On the microcontrollers end, the changed values is what is sent in the packet. I have debugged on the microcontroller end and it is fine.
Why is the PC receiving the same packet ?
What could be the possibility? any suggestions?
-- modified at 2:50 Thursday 6th July, 2006
|
|
|
|
|
Hi,
I have created a project using cview and i have created a propertysheet with two property pages.I have two edit boxes in property page.How can I get the data from tha database.(i have already connected to database)
Please help me.
tejaswini
|
|
|
|
|
can't you use CRecordset?
See the sample from MSDN[^]
on iterating either you can update to the list box, edit box or a string array ( depends on your application). Anyway this is the method to get the records and its field value. it is not related to property page.
SaRath.
"Where I am from, there is no plan B. So, take advantage of today becuase tomorrow is not promised. - 50 Cent"
<blink>My Blog | Understanding State Patte
-- modified at 3:00 Thursday 6th July, 2006
|
|
|
|
|
While creating my project(say Sample) using MFCappwizard i connected to a datasourse and instead of CRecordView I used CView.The Appwizard created a SampleSet class which is derived from CRecordSet.
My question is how can I map my control in the property page to database field.If u don't mind can u show a sample code.
thanks in advance.
tejaswini
|
|
|
|
|
I haven't a readymade right now
But the best aproach is to set the values manually. if you associate a text box, with a feild the changes you made will reflect in the data base. so the best practice is to update the values whenever required. Just search in google or CP you will get alot of resources.
SaRath.
"Where I am from, there is no plan B. So, take advantage of today becuase tomorrow is not promised. - 50 Cent"
<blink>My Blog | Understanding State Patte
|
|
|
|
|
ok thank u i am searching in google
|
|
|
|
|
hi all
plz tell me.
i use this function to change the color of button
and i set text on it as click
but how can ichange the font of this click text
as i try to change but not successful. so tell me how can i set font with color
void CBtncolorDlg::OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct)
{
CDC dc;
CRect Rect(lpDrawItemStruct->rcItem);
dc.Attach(lpDrawItemStruct->hDC);
dc.SetBkMode(0);
dc.FillRect(Rect,&CBrush(RGB(0,100,0)));
dc.SetTextColor(RGB(255,0,0));
dc.DrawText("Click",Rect,DT_CENTER|DT_SINGLELINE);
dc.Detach();
}
Ashish Dogra
MCA
Noida
|
|
|
|
|
use CreateFont()
and then SelectObject()
Regards
Abhi Lahare
|
|
|
|
|
i try these but if u can give example thats good
Ashish Dogra
MCA
Noida
|
|
|
|
|
In this function use SelectObject and for get font use GetFont()
whitesky
|
|
|
|
|
i do this but on button rolling is start and after sometime dialog box is not visible
plz tell me
Ashish Dogra
MCA
Noida
-- modified at 3:01 Thursday 6th July, 2006
|
|
|
|
|
Can you show how you to use?
whitesky
|
|
|
|
|
CDC dc;
CRect Rect(lpDrawItemStruct->rcItem);
dc.Attach(lpDrawItemStruct->hDC);
dc.SetBkMode(0);
{
dc.FillRect(Rect,&CBrush(RGB(0,100,0)));
dc.SetTextColor(RGB(255,0,0));
dc.DrawText("Click",Rect,DT_CENTER|DT_SINGLELINE);
dc.SelectObject(m_button);
//for font
CFont pp;
pp.DeleteObject();
pp.CreateFont(30,0,0,0,0,0,0,0,0,0,0,0,0,"arial");
m_button.SetFont(&pp);
}
Ashish Dogra
MCA
Noida
|
|
|
|
|
What's problem with this code? and one thing why you use from pp.DeleteObject();
when you declare CFont pp in above it.
whitesky
|
|
|
|
|
Yesterday the same question has been answered right?
Refer MSDN first, if you are not getting more information search in CP or codeguru.
if we read some good articles, we can correct if our aproach or method is wrong.
SaRath.
"Where I am from, there is no plan B. So, take advantage of today becuase tomorrow is not promised. - 50 Cent"
<blink>My Blog | Understanding State Patte
|
|
|
|
|
what is the breakpoint how we can use this in our progarm.i searched in the google i didn't found any tutorial for that.please please tell me.
vasu.
-- modified at 2:27 Thursday 6th July, 2006
|
|
|
|
|
Breakpoint is related to debugging a software application. as the name resembles, the program will stop (break) execution on that location. now you can watch variable registers, memory and other resources to make sure that the program is running properly and or to track (usually) the bug.
See this[^]
There's a book named "Debugging Applications" by John Robbins to learn more about debugging.
For a basic understanding this book is not required. if you want to develop your debug skills, this books is an ultimate one for debugging windows applications.
SaRath.
"Where I am from, there is no plan B. So, take advantage of today becuase tomorrow is not promised. - 50 Cent"
<blink>My Blog | Understanding State Patte
-- modified at 3:07 Thursday 6th July, 2006
|
|
|
|
|
|
hi!
I am devoloping a project in which i have different dialogs that gets displayed on a static tab clicks. i.e on static tab1 click, say dialog 1 is being displayed n like that.
Now in one of the dialog there is a check box which decides whether to load next dialog or not. i.e i need to disable static tab of the next dialog if this check box is checked.
How can i do this?? How can i get the access to taht check box from another dialog??
Thx in advance!
|
|
|
|
|
One way is to do this : When the user clicks on that check box write a value into the registry and then check for the value set/not set when you are trying to show the next dialog.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|