Click here to Skip to main content
15,911,306 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: SetForegroundWindow fails Pin
Neville Franks29-Sep-04 10:34
Neville Franks29-Sep-04 10:34 
GeneralRe: SetForegroundWindow fails Pin
Phil J Pearson29-Sep-04 10:53
Phil J Pearson29-Sep-04 10:53 
GeneralRe: SetForegroundWindow fails Pin
Neville Franks29-Sep-04 11:04
Neville Franks29-Sep-04 11:04 
GeneralRe: SetForegroundWindow fails Pin
Phil J Pearson30-Sep-04 7:10
Phil J Pearson30-Sep-04 7:10 
GeneralChange style of window owned by another app in 98? Works in XP. Pin
Alex Gibbs28-Sep-04 8:42
Alex Gibbs28-Sep-04 8:42 
GeneralRe: Change style of window owned by another app in 98? Works in XP. Pin
agentnem28-Sep-04 9:16
agentnem28-Sep-04 9:16 
GeneralRe: Change style of window owned by another app in 98? Works in XP. Pin
Alex Gibbs2-Oct-04 7:45
Alex Gibbs2-Oct-04 7:45 
GeneralRe: Change style of window owned by another app in 98? Works in XP. Pin
Alex Gibbs2-Oct-04 7:49
Alex Gibbs2-Oct-04 7:49 
Here is an update. I can modify another window's style under XP using any of the calls below, if the priveleges are set as mentioned in the first post:
<br />
  SetWindowLongPtr (hWnd, GWL_STYLE, dwStyle);<br />
  CWnd::ModifyStyle (hWnd, dwRemove, dwAdd, 0);<br />
  pCWnd->ModifyStyle (dwRemove, dwAdd);<br />

However, none of them change the visible appearance of a window under 98. Remember I am trying to change the window of another process. I think the problem is one of priveleges/permissions in 98.

I found something else that might be relevant at MSDN, but I don't think it is the problem. MSDN Article, 5th paragraph: "Windows 95/98/Me automatically adds and removes the WS_EX_WINDOWEDGE style for windows in all applications. ..."

Anyone able to help with priveleges/permissions in 98?

Alex Gibbs
GeneralRe: Change style of window owned by another app in 98? Works in XP. Pin
agentnem11-Oct-04 11:01
agentnem11-Oct-04 11:01 
GeneralCreating Add-in for Visual Basic Editor Pin
agentnem28-Sep-04 8:33
agentnem28-Sep-04 8:33 
GeneralRe: Creating Add-in for Visual Basic Editor Pin
BlackDice28-Sep-04 10:49
BlackDice28-Sep-04 10:49 
GeneralRe: Creating Add-in for Visual Basic Editor Pin
agentnem28-Sep-04 13:12
agentnem28-Sep-04 13:12 
GeneralWindows Themed Shapes and Structure RGNDATA Pin
Tristan Rhodes28-Sep-04 7:23
Tristan Rhodes28-Sep-04 7:23 
GeneralTerminating a thread from a different thread Pin
BlackDice28-Sep-04 6:15
BlackDice28-Sep-04 6:15 
GeneralRe: Terminating a thread from a different thread Pin
Blake Miller28-Sep-04 6:36
Blake Miller28-Sep-04 6:36 
GeneralHow about this? Pin
BlackDice28-Sep-04 6:57
BlackDice28-Sep-04 6:57 
GeneralRe: How about this? Pin
Blake Miller28-Sep-04 7:09
Blake Miller28-Sep-04 7:09 
GeneralRe: How about this? Pin
BlackDice28-Sep-04 7:42
BlackDice28-Sep-04 7:42 
GeneralRe: How about this? Pin
Blake Miller28-Sep-04 7:52
Blake Miller28-Sep-04 7:52 
GeneralRe: How about this? Pin
BlackDice28-Sep-04 11:02
BlackDice28-Sep-04 11:02 
GeneralRe: Terminating a thread from a different thread Pin
Neville Franks28-Sep-04 10:35
Neville Franks28-Sep-04 10:35 
GeneralMessage lost when sending to split windows Pin
mike-o28-Sep-04 6:03
mike-o28-Sep-04 6:03 
GeneralRe: Message lost when sending to split windows Pin
Sujan Christo28-Sep-04 19:40
Sujan Christo28-Sep-04 19:40 
GeneralCustom Shell handler Pin
Jim Crafton28-Sep-04 6:00
Jim Crafton28-Sep-04 6:00 
GeneralRe: Custom Shell handler Pin
David Crow28-Sep-04 9:54
David Crow28-Sep-04 9:54 

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.