Click here to Skip to main content
16,020,673 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: changing the cursor postion in a editable combobox??? Pin
SnaKeBeD15-Nov-07 7:49
SnaKeBeD15-Nov-07 7:49 
QuestionRe: changing the cursor postion in a editable combobox??? Pin
David Crow15-Nov-07 8:42
David Crow15-Nov-07 8:42 
GeneralRe: changing the cursor postion in a editable combobox??? Pin
DoomedOne15-Nov-07 9:45
DoomedOne15-Nov-07 9:45 
GeneralRe: changing the cursor postion in a editable combobox??? Pin
chandu00415-Nov-07 21:05
chandu00415-Nov-07 21:05 
GeneralRe: changing the cursor postion in a editable combobox??? Pin
Nelek15-Nov-07 23:46
protectorNelek15-Nov-07 23:46 
GeneralRe: changing the cursor postion in a editable combobox??? Pin
chandu00416-Nov-07 20:55
chandu00416-Nov-07 20:55 
GeneralRe: changing the cursor postion in a editable combobox??? Pin
Nelek19-Nov-07 21:39
protectorNelek19-Nov-07 21:39 
GeneralRe: changing the cursor postion in a editable combobox??? Pin
SnaKeBeD16-Nov-07 4:33
SnaKeBeD16-Nov-07 4:33 
hi thankyou for sending the code ,
your piece of code is working fine when i tried as seperate program

i'm sending the piece of code where i have to change the cursor postion. Since i have to Reset the condent of the combobox for the previous value, can u tell me tsome way to sort it out????

void CBillingDlg::OnEditchangeProductID()
{
int vv=m_ProductID.GetCoun();//m_ProductID
//is my variable for combo box
CString var;
CString xx;
m_ProductID.GetWindowText(var);//getting text//
xx=var;
var=var+'%';
m_ProductID.ResetContent();//Foe clearing the previous values//
m_ProductID.SetWindowText(xx);
/*Below Code for accessing the database*/
CString query;
query.Format("Select ProductID from Product where ProductID like '%s%%'",var);

TCHAR sz[1024];
sprintf(sz, query);
char *ptr=sz;
bas obj;
spring++;
int i=obj.ProductName(ptr,"ProductID");
for(int peek = 0;peek<obj.x;peek++)
{
="" m_productid.insertstring(peek,(lpctstr)obj.usernames[peek]);
=""
="" }
="" *accessing="" the="" database-end**=""
}=""

<div="" class="ForumSig">||SnAkeBed||
GeneralRe: changing the cursor postion in a editable combobox??? Pin
DoomedOne16-Nov-07 6:53
DoomedOne16-Nov-07 6:53 
QuestionHow can block a Messenger packet....? Pin
jomons15-Nov-07 2:24
jomons15-Nov-07 2:24 
GeneralRe: How can block a Messenger packet....? Pin
Matthew Faithfull15-Nov-07 4:06
Matthew Faithfull15-Nov-07 4:06 
Questionneed help with c programming data validation Pin
neodeaths15-Nov-07 2:17
neodeaths15-Nov-07 2:17 
GeneralRe: need help with c programming data validation Pin
Matthew Faithfull15-Nov-07 2:24
Matthew Faithfull15-Nov-07 2:24 
GeneralRe: need help with c programming data validation Pin
neodeaths15-Nov-07 4:33
neodeaths15-Nov-07 4:33 
GeneralRe: need help with c programming data validation Pin
DoomedOne15-Nov-07 5:01
DoomedOne15-Nov-07 5:01 
QuestionMDI without Doc/view Pin
CodeMak15-Nov-07 1:30
CodeMak15-Nov-07 1:30 
AnswerRe: MDI without Doc/view Pin
Nelek15-Nov-07 1:35
protectorNelek15-Nov-07 1:35 
GeneralRe: MDI without Doc/view Pin
CodeMak15-Nov-07 1:39
CodeMak15-Nov-07 1:39 
GeneralRe: MDI without Doc/view Pin
CodeMak15-Nov-07 1:44
CodeMak15-Nov-07 1:44 
GeneralRe: MDI without Doc/view Pin
Nelek15-Nov-07 3:03
protectorNelek15-Nov-07 3:03 
GeneralRe: MDI without Doc/view Pin
CodeMak15-Nov-07 17:23
CodeMak15-Nov-07 17:23 
GeneralRe: MDI without Doc/view Pin
Nelek15-Nov-07 20:57
protectorNelek15-Nov-07 20:57 
QuestionProblem with registering MFC Activex Control Pin
ashishbhatt15-Nov-07 0:59
ashishbhatt15-Nov-07 0:59 
AnswerRe: Problem with registering MFC Activex Control Pin
Paresh Chitte15-Nov-07 1:36
Paresh Chitte15-Nov-07 1:36 
GeneralRe: Problem with registering MFC Activex Control Pin
ashishbhatt15-Nov-07 18:45
ashishbhatt15-Nov-07 18:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.