Help!! TCppWebBrowser ,popup window and Cookie

c++ builder

    Sponsored Links


  • 1. TStoredProc and Oracle in BCB5
    Hi, I have stored procedure on server with one input and one output parameter (varchar2 type). When I select procedure name in the design time, list of parameters is automatically generated, and parameter's type is ftMemo. Problem is, that output parameter can not be of ftMemo type, and if I try to execute it, an exception arise. So I've changed it to ftString, but it doesn't work correctly. It always returns "correct" values, but sometimes some shit is appended at the end of returned string. It seams to be random. And I'm not able to determine length of returned data, because GetDataSize always return 2 (for ftString) or it returns length of data including that random values at the end of string. So how can I solve it ? Thanks a lot. noIdea
  • 2. TEdit Vertical centered text
    HI, I would like to center the text in a TEdit verticaly but I can not find the right way to do it. I try this but the text of my TEdit is not centered. Could you explain me why please ? __fastcall TForm1::TForm1(TComponent* Owner) : TForm(Owner) { myEdit->Text = ""; // myEdit is a TEdit* put on my Form1 TRect myRect; int a = myEdit->Left; int b = myEdit->Width ; int c = myEdit->Top ; int d = myEdit->Height ; myRect.Left = a; myRect.Right = a + b; myRect.Top = c; myRect.Bottom = c+d; DrawText(myEdit, myEdit->Text.Length(), myEdit->Text.Length(), &myRect, DT_SINGLELINE | DT_VCENTER); } Thank you for your answer.
  • 3. How to get the volume of soundcard
    In want to get the value of the master volume of the soundcard and I want to change it. how to do? thanks Martin
  • 4. flat/transparent Bitbtn
    Hi, Can someone help me out how to get a transparent/flat bitbtn (derived class) such as the SpeedButton Thanks, Bart
  • 5. Form freeze...
    Hey all, I have the following problem with my application: My main form creates a thread, which creates a Socket that make use of the Winsock2 API (I made a class for it. The sockets are in non-blocking mode). The execute method checks my message queue and broadcasts them to all connected users, by creating a new thread which sends the message to all connected users and then terminates. Now, my problem is that after a while when more users connect, the main form freezes and while the traffic in the hub still flows, it lags pretty bad. I tried calling Application->ProcessMessages() from the thread, but it didn't do anything. The thread only access methods from the main form using Synchronize() and it accesses certain objects using pointers: in mainform: Thread->List = ListView1->Items; List is a pointer to TListItems. I am sure this is thread safe, since the thread never acctually modfies the data, only reads from it. I suspect it has something to do with the way my sockets work. I got the following code in the constructor for my socket class: this->Handle = AllocateHWnd(Proc); I use the Handle then for this: WSAAsyncSelect(sock, this->Handle, WM_USER + 1, FD_ACCEPT); and WSAAsyncSelect(NewSock->sock, NewSock->Handle, WM_USER + 1, FD_READ | FD_CLOSE); Can this have negative effects? I, of course, call DeallocateHWnd in the destructor. Any ideas? thank you Seabass

Help!! TCppWebBrowser ,popup window and Cookie

Postby Cheng » Fri, 05 Sep 2003 09:32:08 GMT

I set up a CppWebBrowser in my software. It acts as a IE and woks fine.
But If It needs to popup a new window with cookie after clicking related
button inside the CppWebBrowser. It works differently from using IE. It
seems the new popup windows's session is different from the origal

I appreciate any help!
Thanks in advance!


Similar Threads: about downloading with session and cookie support at windows application

2.Stop TCPPWebBrowser Javascript Popup

3.TCppWebBrowser Popup Menu Clipboard Copy Operation

The right-click popup menu contains Copy and Select all, which appear to be
supported in that they are enabled and disabled appropriately when text is
selected.  However, Copy does not change the contents of the Clipboard.  Any
ideas how to get this to work, or how to remove the non-functional items from
the menu?

4.Popup window (actually slide up window like AOL/Trillian)

Does anybody have any code to do the kind of status window where the window 
slides up from the bottom displays for a few seconds and then disappears?

I found it for MFC but not C#.

TIA - Jeff.

5.Popup menus and windows move behind app window in XP

All first-level popup windows, whether they be right-click menus, "What's 
this" context popups, drop-down selection boxes, are disappearing behind the 
application window or dialog box being displayed a second or two after being 
displayed.  This behavior is limited to Windows XP and never happens when out 
product is used with Windows 2000.  Sometimes the windows do not disappear.  
When they do, it is only the portion of the window that overlays our 
application window or a dialog being displaying.  It is as if the application 
window or dialog is being redrawn and the order of which window is topmost is 
changed.  Even though the window is drawn behind the frame it overlays, all 
items are still selectable so the popup itemis still on top, but its image 
has been drawn behind.

Our application presents as a floating toolbar and does have the topmost 
flag set so that it never disappears behind other applications.  (It is used 
in concert with other applications and must be visible at all times.)  It can 
also be docked as an AppBar to the top and bottom of the screen.  Docking 
does not change the aberrant behavior of the popup items.

Is anyone aware of a difference between Windows 2000 and XP that would 
explain the bad behavior under XP?  Again, we have no such problems with 
Windows 2000.  Any suggestions for the cause and especially a work-around 
would be greatly appreciated.

6. Newbie Cookie Question - Cookie Not Saved

7. Correct way to copy cookies between Indy cookie managers

8. Cookies just vanishing/dropping/resetting - help!

Return to c++ builder


Who is online

Users browsing this forum: No registered users and 27 guest