Click here to Skip to main content
15,917,321 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: KEEP icon in systray Pin
Michael Dunn8-Sep-04 12:50
sitebuilderMichael Dunn8-Sep-04 12:50 
GeneralUpgrading VC++ 6.0 Standard Edition Pin
void()8-Sep-04 11:09
void()8-Sep-04 11:09 
GeneralRe: Upgrading VC++ 6.0 Standard Edition Pin
Ryan Binns8-Sep-04 18:42
Ryan Binns8-Sep-04 18:42 
GeneralProblems with Load C++ dll from Access VBA Pin
Wei Cheng8-Sep-04 10:32
Wei Cheng8-Sep-04 10:32 
GeneralCreating Visual Studio6.0 add-in Pin
Bob Stanneveld8-Sep-04 10:06
Bob Stanneveld8-Sep-04 10:06 
GeneralBrute Force Pin
RedDragon2k8-Sep-04 9:25
RedDragon2k8-Sep-04 9:25 
GeneralRe: Brute Force Pin
Chris Losinger8-Sep-04 9:27
professionalChris Losinger8-Sep-04 9:27 
GeneralBit stuff Pin
Timothy Grabrian8-Sep-04 8:50
professionalTimothy Grabrian8-Sep-04 8:50 
I want to create my own function like the Win32 API's, where you can use things like this: WS_VISBLE | WS_BORDER.
What opperator do I use to check for each style? and what variable type should I use? I'm guessing LONG or WORD

Winuser.h makes everything this way: #define SOMETHING 0x10000000L.
So if I want 14 Flags, what should I make each one?

while I'm asking about opperators, here is some code that always executes no matter what style (it seems)
C++
LONG Style = 0;
if((Style = GetWindowLong(hwnd,GWL_STYLE)) != 0)//Get Style to change it
{
	//Here is the problem
	if(!(Style & BS_TEXT))//If there is no Text style,
	{
		SetWindowLong(hwnd,GWL_STYLE,Style & ~BS_BITMAP);//Remove the Bitmap style
		if((Style = GetWindowLong(hwnd,GWL_STYLE)) != 0)//Get New style so I can change it again
			SetWindowLong(hwnd,GWL_STYLE,Style | BS_TEXT);//Now add the Text style
	}
}


wWw.KruncherInc.cOm
GeneralRe: Bit stuff Pin
Timothy Grabrian8-Sep-04 8:56
professionalTimothy Grabrian8-Sep-04 8:56 
GeneralRe: Bit stuff Pin
Chris Losinger8-Sep-04 9:24
professionalChris Losinger8-Sep-04 9:24 
GeneralRe: Bit stuff Pin
Bob Stanneveld8-Sep-04 9:50
Bob Stanneveld8-Sep-04 9:50 
GeneralRe: Bit stuff Pin
Chris Losinger8-Sep-04 10:07
professionalChris Losinger8-Sep-04 10:07 
GeneralRe: Bit stuff Pin
PJ Arends8-Sep-04 16:21
professionalPJ Arends8-Sep-04 16:21 
GeneralCDialog and taskkbar Pin
?!?8-Sep-04 8:19
?!?8-Sep-04 8:19 
GeneralMFC newbie question Pin
Anonymous8-Sep-04 8:14
Anonymous8-Sep-04 8:14 
GeneralRe: MFC newbie question Pin
David Crow8-Sep-04 9:05
David Crow8-Sep-04 9:05 
Generalincoming connection with ras api Pin
mark1828-Sep-04 6:55
mark1828-Sep-04 6:55 
QuestionHourglass Animation? Pin
Joel Holdsworth8-Sep-04 6:24
Joel Holdsworth8-Sep-04 6:24 
AnswerRe: Hourglass Animation? Pin
DRHuff8-Sep-04 6:48
DRHuff8-Sep-04 6:48 
GeneralRe: Hourglass Animation? Pin
Joel Holdsworth8-Sep-04 7:07
Joel Holdsworth8-Sep-04 7:07 
GeneralRe: Hourglass Animation? Pin
David Crow8-Sep-04 8:40
David Crow8-Sep-04 8:40 
AnswerRe: Hourglass Animation? Pin
Graham Bradshaw8-Sep-04 13:00
Graham Bradshaw8-Sep-04 13:00 
GeneralI've shown the dialog, now I can't interact with it. Pin
BlackDice8-Sep-04 6:16
BlackDice8-Sep-04 6:16 
GeneralWM_HSCROLL doesn't work on custom sliders Pin
Budric B.8-Sep-04 6:05
Budric B.8-Sep-04 6:05 
GeneralRe: WM_HSCROLL doesn't work on custom sliders Pin
Anonymous8-Sep-04 6:44
Anonymous8-Sep-04 6:44 

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.