Click here to Skip to main content
16,005,209 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: problem with dialog background color [modified] Pin
namaskaaram12-May-08 18:33
namaskaaram12-May-08 18:33 
GeneralRe: problem with dialog background color Pin
namaskaaram12-May-08 18:42
namaskaaram12-May-08 18:42 
AnswerRe: problem with dialog background color Pin
Hamid_RT12-May-08 19:23
Hamid_RT12-May-08 19:23 
AnswerRe: problem with dialog background color Pin
Nitheesh George13-May-08 0:27
Nitheesh George13-May-08 0:27 
GeneralRe: problem with dialog background color Pin
Mark Salsbery13-May-08 6:12
Mark Salsbery13-May-08 6:12 
QuestionCRecordView, finding and scrolling Pin
Anders Gustafsson12-May-08 7:57
Anders Gustafsson12-May-08 7:57 
QuestionRe: CRecordView, finding and scrolling Pin
David Crow12-May-08 8:49
David Crow12-May-08 8:49 
AnswerRe: CRecordView, finding and scrolling [modified] Pin
Anders Gustafsson12-May-08 9:01
Anders Gustafsson12-May-08 9:01 
Yes. If I set m_strFilter and do a requery, I find my record. I then clear m_strFilter. If I then hit previous/next the framework will kick off an extended fetch that will error with 100 (SQL No DATA).

What does work, but is kind of ugly is this:
Open the table, scroll through all records, for each do a:
m_pSet->GetStatus(rStatus);
m_Index[m_pSet->m_Nummer] = rStatus.m_lCurrentRecord + 1;

This builds an index of all records and their absolute numbers. Then in my lookup routine:

m_pSet->m_strFilter = "Nummer=?";
m_pSet->m_Nummerfilter = m_persGrund.m_persnrEdit.m_set.m_Nummer;
m_pSet->Requery();
m_pSet->m_strFilter = "";
m_pSet->Requery();
m_pSet->SetAbsolutePosition(m_Index[m_persGrund.m_persnrEdit.m_set.m_Nummer]);

But this seems like a tremenous kludge for such a simple task?

modified on Monday, May 12, 2008 3:16 PM

QuestionRe: CRecordView, finding and scrolling Pin
David Crow12-May-08 10:11
David Crow12-May-08 10:11 
AnswerRe: CRecordView, finding and scrolling Pin
Anders Gustafsson12-May-08 23:53
Anders Gustafsson12-May-08 23:53 
QuestionBalloon on system tray Pin
capint12-May-08 5:16
capint12-May-08 5:16 
AnswerRe: Balloon on system tray Pin
Mark Salsbery12-May-08 5:23
Mark Salsbery12-May-08 5:23 
AnswerRe: Balloon on system tray Pin
Iain Clarke, Warrior Programmer12-May-08 5:29
Iain Clarke, Warrior Programmer12-May-08 5:29 
GeneralRe: Balloon on system tray Pin
capint12-May-08 6:14
capint12-May-08 6:14 
GeneralRe: Balloon on system tray Pin
capint12-May-08 7:23
capint12-May-08 7:23 
GeneralRe: Balloon on system tray Pin
Iain Clarke, Warrior Programmer12-May-08 7:41
Iain Clarke, Warrior Programmer12-May-08 7:41 
QuestionVC++ 6.0 Output file name for MFC extension DLL Pin
bob1697212-May-08 4:01
bob1697212-May-08 4:01 
AnswerRe: VC++ 6.0 Output file name for MFC extension DLL Pin
Rajkumar R12-May-08 5:34
Rajkumar R12-May-08 5:34 
GeneralRe: VC++ 6.0 Output file name for MFC extension DLL Pin
bob1697212-May-08 6:39
bob1697212-May-08 6:39 
QuestionHow to get the text from html text box into custom web browser which is created using IWebBrowser2 Pin
Member 462021612-May-08 2:55
Member 462021612-May-08 2:55 
AnswerRe: How to get the text from html text box into custom web browser which is created using IWebBrowser2 Pin
Rajkumar R12-May-08 5:09
Rajkumar R12-May-08 5:09 
GeneralRe: How to get the text from html text box into custom web browser which is created using IWebBrowser2 Pin
Member 462021612-May-08 21:55
Member 462021612-May-08 21:55 
GeneralRe: How to get the text from html text box into custom web browser which is created using IWebBrowser2 [modified] Pin
Rajkumar R12-May-08 23:00
Rajkumar R12-May-08 23:00 
GeneralRe: How to get the text from html text box into custom web browser which is created using IWebBrowser2 Pin
Rajesh R Subramanian13-May-08 18:15
professionalRajesh R Subramanian13-May-08 18:15 
GeneralRe: How to get the text from html text box into custom web browser which is created using IWebBrowser2 Pin
Rajkumar R13-May-08 18:50
Rajkumar R13-May-08 18:50 

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.