|
|
Up |
|
|
  |
Author: Scott HScott H
Date: Dec 31, 2007 18:18
Thanks for all your help so far, Christian ASTOR.
The next problem I need to resolve (without MFC) is listbox
flickering. I tried to use LockWindowUpdate, but for some reason I
still get flicker.
That, together with the simultaneous listbox scrolling requirement, is
all that remains for now. Any advice is greatly appreciated.
|
| |
|
| |
3 Comments |
|
  |
Author: Scott HScott H
Date: Dec 31, 2007 08:41
I know GetCursorPos returns the location of the mouse cursor. How do
you request whether the button is being held down? Can you do it with
a similar function, or is it necessary to catch WM_LBUTTONDOWN
messages?
If I need to catch messages, what's the easiest way to do it when the
mouse is clicked over a listbox?
|
| |
|
| |
1 Comment |
|
  |
Author: mefmvevfimefmvevfi
Date: Dec 31, 2007 01:59
MI5 Persecution Update: Friday 9 July,. 1999
Harassment. in Poland, July 1999
And still it continues.... in my last fax I said that provided MI5 made. no
attempts at harassment during my two-week holiday this summer,. or after I
returned to England, then I would discontinue these faxes.. Unfortunately
MI5 have continued to harass. me, both during the holiday and after my
return. to London. I really dont want to continue these articles, since
they take up so much time and effort, not. to mention expense; but the
Security Service. wont even let me have a holiday in peace and quiet, so I
have. to make further efforts to bring their activities out into the open.
In early. July I visited my aunt and her family in Poland. On Saturday 3
July 1999, I went to a family. barbecue at an allotment outside the
city. One of my. aunts family has previously shown himself to...
|
| Show full article (14.69Kb) |
|
no comments
|
|
  |
Author: EpetrukEpetruk
Date: Dec 31, 2007 00:07
Hello,
Sorry for the repost on microsoft.public.win32.programmer.ui - I meant to
crosspost this to a few other groups as well.
I have a strange situation here where I have an application which calls
SetForegroundWindow on a window that it spawns. Now I initiate this
application while sitting in front of the computer, it sets the spawned
window like it should. However, when I initiate the application while
connected to the computer via Remote Desktop, it fails to set the spawned
window to the foreground (i.e. SetForegroundWindow returns 0). The funny
thing is that GetLastError also returns 0.
Anyone have any idea what might be going on here? Is this expected
behaviour? Is there a way round it?
Thanks in advance,
Akin
--
akyak at aksoto dot idps dot co dot uk
|
| |
|
4 Comments |
|
  |
Author:
Date: Dec 30, 2007 20:02
I am building an app with two MFC classes descended from CDialog.
Probably by the end of it, I am going to have 5 or 6 CDialogs (in a
tabbed window). I have spent quite some time adding custom painting
to the first of them. All of them, in the end, are going to have this
same custom painting going on.
The thing to do then would be to make an intermediate class, MyDialog,
descended from CDialog, with the custom painting in the OnPaint()
method, then derive the 5 or 6 dialogs from that, so I am not
repeating and maintaining the custom painting code in all of my
dialogs.
Theoretically this is very simple ... I create a class MyDialog, then
change the parent class of my dialogs from CDialog to MyDialog, then
transfer the custom OnPaint() method from the dialogs to MyDialog, so
the children all inherit it.
|
| Show full article (3.28Kb) |
|
4 Comments |
|
  |
Author:
Date: Dec 30, 2007 15:12
This comes close to just whining ... but maybe somebody knows a good
general-purpose solution to this.
At the moment I am trying to figure out a way to blit a bitmap into a
window, setting pixels in the bitmap to transparent. That is, the
bitmap has pixels that are definitely background, and I want the
window background to show through the bitmap background pixels.
I found this example:
http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/dnarmfc/html/msdn_mfcclip...
which is perfect. What the author is doing is more general than what
I want to do so his approach is more complicated, but I can simplify
it down for what I need.
The problem though is that his example uses HDC and HBITMAP throughout
... but in my app, created using MFC and the visual builder,
everything is in CDC and CBitmap objects.
Theoretically I should be able to do the same things ... but there are
a lot of basic differences ... it isn't just a question of converting
one class of objects to a later extensions of those classes, the whole
approach is different. I've done less work converting perl to c ...
A line like this
|
| Show full article (2.23Kb) |
|
no comments
|
|
  |
Author: MCMC
Date: Dec 30, 2007 05:29
Can a child control have a child control of its own?
I have a (WS_CHILD) listbox control which has a scroll control (WS_CHILD'ed to
the listbox).
The listbox and the scroll control have their own WndProc set by
SetWindowLong(..).
The scroll control is not showing. If I set its parent to be the main window it
shows up OK. If I parent it to the listbox It does not show up. I have
UpdateWindow() WS_VISIBLE set up ok.
My goal is to have the listbox WndProc to handle all the WM_HSCROLL messages.
|
| |
|
5 Comments |
|
  |
Author:
Date: Dec 30, 2007 03:51
Hi all,
My app is currently getting the following error when compiled by FASM:
MyApp.asm [62029]:
dd SM_iunknown
error: undefined symbol.
I have no idea what's causing it. :( Any advice on what to check?
I thought it may be due to the GetSystemMetrics API (due to the
"SM" bit) but apparently not after removing calls to it.
|
| |
|
1 Comment |
|
  |
Author: mearvkmearvk
Date: Dec 29, 2007 13:00
So I'm modding this file and I'm trying to put in some print
statements for debugging purposes. The .exe compiles fine and even
gives me runtime errors (stderr.txt) but it won't print to the cmd
line for debugging. I'm new to C++ so don't overlook any obvious
problems. I've tried cout and fprint and neither works. Let me know if
you need anything else for debugging.
Thanks ahead of time!
// Berkeley Open Infrastructure for Network Computing
// http://boinc.berkeley.edu
// Copyright (C) 2005 University of California
//
// This is free software; you can redistribute it and/or
// modify it...
|
| Show full article (7.00Kb) |
|
2 Comments |
|
  |
|
|
  |
|
|
|
|
|
|
|