Re: Making DLLs

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi Victor,

There are problems with frames in VB6 that I've run into. I've run into
that problem myself inside of VB, where flickering of "objects inside
a frame" during resizing is extremily annoying.

If anyone wants to see what's happening, create a VB standard exe
project, put a frame on a form, then put a filelist box inside of the
frame.

Then put some code inside of the Frame1_Resize Event to resize
the frame and filelist control. You'll see the filelistbox flickering during
the resize.

Victor, you might want to put a frame inside of a picturebox and then

Randy Birch indicated:
"I found that if you place the controls into a picture box, then set the
clipcontrols property of the pixbox to false, the controls in the frame
no longer flicker!"

I haven't personally checked this out as of yet and I believe Randy means
put the controls inside of a Frame1 which in turn sits inside of PictureBox1
and then set PictureBox1.ClipControls = False. This gets done within the
VB project for the control your using.

Let us know if that works for you.

--
Jim Carlock
Please post replies to newsgroup.

"victorsk" <victorsk@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Hi,

Thanks for the message. Yes, I think I know what a function is. In my
three years of univeristy computer science I think I got the idea. What I
can't understand is why it is so hard for you to grasp what I mean in my
question about DLL.

When I created a DLL in VB, I exported a function that called a frame1.show
procedure. This frame1 consisted of an FTP application i.e. a "window" that
flickered when a user clicked outside of it. I really don't know how else to
phrase my question, but what I need to know is if a DLL created in VC++ would
call a function that *creates* a window that would "flicker" if a user would
click outside of it. Do you understand what I mean at least when it comes to
"flickering" part? Sorry, I am quite new to windows programming.


"Scott McPhillips [MVP]" wrote:

> victorsk wrote:
> > Hi,
> >
> > Thanks for the message. Sorry, I am still a bit fuzzy on whether VC++ will
> > create a DLL that, when called by an external app, will not "flicker" when a
> > user attempts to close the parent app while the DLL (app?) is open. It's
> > like those "yes/no" dialogs that we get in Windows that force the user to
> > respond before they have access to other windows applications. Is this what
> > VC++ DLL will work as? Sorry if I can't be more clear in my question. Thank
> > you.
> >
> > Victor.
>
> A DLL is code, not a window. Since a DLL is not a window it does not
> open, or close, or flicker. Your question does not make much sense
> because it seems to be based on a mistaken belief that a DLL is some
> kind of window.
>
> Do you know what a "function" is? A DLL is a file containing some
> functions the parent app can call.
>
> --
> Scott McPhillips [VC++ MVP]


.



Relevant Pages

  • Re: CEdit does not get WM_CHAR in a DLL when the main application is minimized
    ... I have a simple application that lunch a DLL. ... The DLL opens a window ... characteristics of the screen, its resolution, the parent frame size, etc. ... In this case, if you minimize the application, the frame window you just created ...
    (microsoft.public.vc.mfc)
  • Re: CEdit does not get WM_CHAR in a DLL when the main application is minimized
    ... I have a simple application that lunch a DLL. ... The DLL opens a window ... characteristics of the screen, its resolution, the parent frame size, etc.  There is no ...
    (microsoft.public.vc.mfc)
  • Re: Making DLLs
    ... When I created a DLL in VB, I exported a function that called a frame1.show ... "flickering" part? ... >> user attempts to close the parent app while the DLL is open. ... Since a DLL is not a window it does not ...
    (microsoft.public.vc.language)
  • Re: How to program plugin DLLs
    ... Now concerning plugin development, I wonder which is the best way to deal ... > Generally, you can use the same frame, because there is very little in the ... > DLL has to have ... >>user to open a MDI window that monitors the corresponding device. ...
    (microsoft.public.vc.mfc)
  • Re: How to program plugin DLLs
    ... and use MDI to monitor more than one device at a time. ... Generally, you can use the same frame, because there is very little in the frame that is ... need to include the frame not because it is different, but because each DLL has to have ... >user to open a MDI window that monitors the corresponding device. ...
    (microsoft.public.vc.mfc)