Click here to Skip to main content
16,008,469 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionlparam question? Pin
imran_rafique20-Sep-02 14:48
imran_rafique20-Sep-02 14:48 
AnswerRe: lparam question? Pin
Paul M Watt20-Sep-02 17:55
mentorPaul M Watt20-Sep-02 17:55 
GeneralIn search of a better tree control. Pin
Tony Fontenot20-Sep-02 12:04
Tony Fontenot20-Sep-02 12:04 
GeneralProblem in making multithreading Winsock Server Pin
nachilau20-Sep-02 11:24
nachilau20-Sep-02 11:24 
Generaltab control problem Pin
Brad Jennings20-Sep-02 11:25
Brad Jennings20-Sep-02 11:25 
GeneralRe: tab control problem Pin
Brad Jennings20-Sep-02 11:41
Brad Jennings20-Sep-02 11:41 
GeneralCOleClientItem Pin
Gary Kirkham20-Sep-02 10:37
Gary Kirkham20-Sep-02 10:37 
QuestionSendMessage not sending? Pin
ns20-Sep-02 10:21
ns20-Sep-02 10:21 
I have in the VC client a progressbar on the UI.:

BSTR bstrDesc;
// TODO: Add your control notification handler code here
      try
  {
  CoInitialize(NULL);
  _Class1Ptr ptr;
  ptr.CreateInstance(__uuidof(Class1));
  m_Progress1.SetStep(1);

  m_Progress1.SetRange(0, 10);

    long lHwnd=(long)m_Progress1.GetSafeHwnd();

    ptr->CheckingStuff(&lHwnd);

  }


and the VB dll function is:
For i = 1 To 10

result = SendMessage(PbarHandle, PBM_STEPIT, 0, 0)

Next


PBM_STEPIT = 1029

The progressbar in the VC UI remains stubbornly blank. What am I missing? Some manual setting for the progressbar, or some programmatic setting? How can I check if SendMessage is working?



Thanks,
ns
AnswerRe: SendMessage not sending? Pin
Joaquín M López Muñoz20-Sep-02 10:24
Joaquín M López Muñoz20-Sep-02 10:24 
GeneralRe: SendMessage not sending? Pin
ns20-Sep-02 10:36
ns20-Sep-02 10:36 
GeneralRe: SendMessage not sending? Pin
ns20-Sep-02 10:45
ns20-Sep-02 10:45 
GeneralGetSafeHwnd() Pin
ns20-Sep-02 10:10
ns20-Sep-02 10:10 
GeneralRe: PArameter Type problem Pin
Joaquín M López Muñoz20-Sep-02 10:12
Joaquín M López Muñoz20-Sep-02 10:12 
GeneralRe: PArameter Type problem Pin
ns20-Sep-02 10:17
ns20-Sep-02 10:17 
GeneralVisual C++.NET Problem Pin
valikac20-Sep-02 9:01
valikac20-Sep-02 9:01 
GeneralRe: Visual C++.NET Problem Pin
Joaquín M López Muñoz20-Sep-02 9:48
Joaquín M López Muñoz20-Sep-02 9:48 
GeneralRe: Visual C++.NET Problem Pin
valikac20-Sep-02 9:50
valikac20-Sep-02 9:50 
GeneralRe: Visual C++.NET Problem Pin
Mike Nordell20-Sep-02 10:10
Mike Nordell20-Sep-02 10:10 
GeneralVoice chat Pin
fahadmunir3320-Sep-02 8:28
fahadmunir3320-Sep-02 8:28 
GeneralRe: Voice chat Pin
Mike Nordell21-Sep-02 11:08
Mike Nordell21-Sep-02 11:08 
GeneralQuestion about using CSocket writing a server Pin
nachilau20-Sep-02 8:23
nachilau20-Sep-02 8:23 
GeneralRe: Question about using CSocket writing a server Pin
Joaquín M López Muñoz20-Sep-02 10:07
Joaquín M López Muñoz20-Sep-02 10:07 
GeneralRe: Question about using CSocket writing a server Pin
nachilau20-Sep-02 11:16
nachilau20-Sep-02 11:16 
GeneralCArchive and memory mapped files Pin
Ted Christiansen20-Sep-02 8:22
Ted Christiansen20-Sep-02 8:22 
GeneralPostMessage Problem Pin
jmkhael20-Sep-02 8:12
jmkhael20-Sep-02 8:12 

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.