Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
hwnd
- Page 1
Re: Trying to animate sprite using DirectX9
Programming
Software Development
2 Months Ago
by Pavel_11
Hello, it is unneccessarily to use right movex or leftmovex , because it is to much variables. You should to use one variable movex to make it with minus or plus sign in your update function; by pressing left or right keys; because the one thing which is changable is a picture; I mean in global sense; variables like leftx, right x should be one…
hWnd/WndProc query
Programming
Software Development
11 Years Ago
by Chicktopus
…(UINT p_uMsg, WPARAM p_wParam, LPARAM p_lParam); LRESULT CALLBACK WndProc(
HWND
hWnd
, UINT uMsg, WPARAM wParam, LPARAM lParam); BOOL CreateGLWindow(…NULL; // Set hInstance To NULL } } LRESULT CALLBACK GLWindow::WndProc(
HWND
hWnd
, UINT uMsg, WPARAM wParam, LPARAM lParam) { PAINTSTRUCT ps; HDC …
Win32 Prob: Send Message to HWND
Programming
Software Development
14 Years Ago
by gretty
…quot;; static HINSTANCE gInstance; // Functions List // LRESULT CALLBACK WndProc(
HWND
hwnd
, UINT msg, WPARAM wParam, LPARAM lParam); int WINAPI WinMain(…hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { WNDCLASSEX wc;
HWND
hwnd
; MSG Msg; //Step 1: Registering the Window Class wc.cbSize…
Re: Win32 Prob: Send Message to HWND
Programming
Software Development
14 Years Ago
by Frederick2
… IDM_BUTTON 1 #define IDM_TEXT 2 // Functions List // LRESULT CALLBACK WndProc(
HWND
hwnd
, UINT msg, WPARAM wParam, LPARAM lParam); int WINAPI WinMain(HINSTANCE… lpCmdLine, int nCmdShow) { char szClassName[] = "myWindowClass"; WNDCLASSEX wc;
HWND
hwnd
; MSG Msg; //Step 1: Registering the Window Class wc.cbSize…
GDI - hwnd and OOP
Programming
Software Development
15 Years Ago
by GadiK
…;rct, TRUE); } //in the main file LRESULT CALLBACK WndProc(
HWND
hWnd
, UINT message, WPARAM wParam, LPARAM lParam) { int wmId, wmEvent….getCoordinates()); break; case DRAW_CIRC: DrawingACircle(hdc, CircClassObj.getCoordinates()); break; } EndPaint(
hWnd
, &ps); break; . . . } }[/ICODE] However if I want…
Re: ShowWindow(hWnd, SW_HIDE); Does not work -- Only with "SW_HIDE" ???
Programming
Software Development
16 Years Ago
by vedmack
…window to hide I do need call the "ShowWindow(
hWnd
, SW_HIDE);" Twice in the following way: [CODE]…{
HWND
hWnd
= FindWindow(NULL, str); if(
hWnd
){ ShowWindow(
hWnd
, SW_MINIMIZE); ShowWindow(
hWnd
, SW_HIDE); } } void myClass::Hidep(CString str) {
HWND
hWnd
= FindWindow(NULL, str); if(
hWnd
){ ShowWindow(
hWnd
, …
Re: Get Dialog hWnd
Programming
Software Development
14 Years Ago
by Excizted
…(GetModuleHandle(NULL), MAKEINTRESOURCE(IDD_DIALOG4),
hWnd
, messengerBox);}[/CODE] So we have a dialog
hWnd
in contact[0].
hWnd
, contact[1].
hWnd
, etc. But all these… hWnds are linked to the messengerBox (BOOL CALLBACK messengerBox(
HWND
hWnd
, UINT message, WPARAM wParam, LPARAM lParam)). How do i make…
SetFocus(HWND) doesn't work :(
Programming
Software Development
13 Years Ago
by medopunsher
…work :S , here is the code [CODE] LRESULT CALLBACK NickProc(
HWND
hwnd
,UINT msg,WPARAM wparam,LPARAM lparam) { switch(msg) { case WM_CREATE…: { EnableWindow(GetParent(
hwnd
),FALSE);
HWND
hedit = CreateWindowEx(WS_EX_CLIENTEDGE,"edit","",WS_VISIBLE | WS_CHILD…
ShowWindow(hWnd, SW_HIDE); Does not work -- Only with "SW_HIDE" ???
Programming
Software Development
16 Years Ago
by vedmack
Heya i want to use ShowWindow(
hWnd
, SW_HIDE); to hide some application, The problem is…i need it for heres the code [CODE]
HWND
hWnd
= FindWindow(NULL, sName); if(
hWnd
) { ShowWindow(
hWnd
, SW_HIDE); } [/CODE] it does execute …the line "ShowWindow(
hWnd
, SW_HIDE);" but it has no affect on the …
Re: GDI - hwnd and OOP
Programming
Software Development
15 Years Ago
by Ancient Dragon
… shown here vector<DrawingObject> theList; LRESULT CALLBACK WndProc(
HWND
hWnd
, UINT message, WPARAM wParam, LPARAM lParam) { int wmId, wmEvent; …PAINTSTRUCT ps; HDC hdc; switch (message) { . . . case WM_PAINT: hdc = BeginPaint(
hWnd
, &ps); for(int i = 0; i < theList.size…
Get Dialog hWnd
Programming
Software Development
14 Years Ago
by Excizted
…the problem in a searchable way. I make a
hWnd
for each contact the user has: [CODE=C++]contact…] messengerBox is defined like this. [CODE=C++]BOOL CALLBACK messengerBox(
HWND
hWnd
, UINT message, WPARAM wParam, LPARAM lParam) { switch(message) …in, but I dont know how to get the
hWnd
, since it is dynamically stored in a variable. …
Re: ShowWindow(hWnd, SW_HIDE); Does not work -- Only with "SW_HIDE" ???
Programming
Software Development
16 Years Ago
by Ancient Dragon
… if it will work, but its worth a try. [code]
HWND
hWnd
= FindWindow(NULL, sName); if(
hWnd
) { ShowWindow(
hWnd
, SW_HIDE); ShowWindow(
hWnd
, SW_HIDE); } [/code]
Re: Get Dialog hWnd
Programming
Software Development
14 Years Ago
by Excizted
…you basically have an array of [B]
hWnd
[/B]'s which all link to the [… the message to the textfield in the
hWnd
as so: [CODE=C++]SendMessage(GetDlgItem(…contact[atoi(row[2])].
hWnd
,IDC_EDIT1), WM_SETTEXT, 0, (LPARAM) convertCharTCHAR(row[… the dialogs and get the contact[i].
hWnd
(to hide window) and the contact[…
GetForegroundWindow() and .hWnd
Programming
Software Development
12 Years Ago
by Ant70
…with the GetForegroundWindow() API function and the .
hWnd
property. I want to check whether my …of the application’s form, contained in Me.
hWnd
. However, it doesn’t work. However, … = lngTimeOutCount + 1 lngHandle1 = GetForegroundWindow() lngHandle2 = Me.
hWnd
If lngHandle1 = lngHandle2 Then lngTimeOutCount = 0 If lngTimeOutCount =…
Re: Linker errors using HWND
Programming
Software Development
15 Years Ago
by Stepes
… wierd thing. When I changed its parameter from
HWND
to int suddenly it finds the constructor! The …icode] perhaps since my constructor is [icode]PSystemManager::PSystemManager(
HWND
)[/icode]
HWND
=/= struct HWND__ * But I created a ctor […had already declared this ctor (pointing to the
HWND
one) Which means
HWND
== struct HWND__ * And in any case,…
Using an HWnd
Programming
Software Development
15 Years Ago
by adrianh
…, Ok, I've got a
HWnd
(the
HWND
was returned from an ActiveX control). I pass the
HWND
to a .NET control. I… try to pass the
HWND
using Control.FromHandle() function and I get a null in …
Re: Get Dialog hWnd
Programming
Software Development
14 Years Ago
by William Hemsworth
[QUOTE]Hope you understand![/QUOTE]Can't say I do, [B]
hWnd
[/B] will hold the handle to the window being used, so can't you just write:[CODE]ShowWindow(
hWnd
, SW_HIDE);[/CODE]If not, you will have to clarify :P Posting / Attaching the whole code would help.
Re: ShowWindow(hWnd, SW_HIDE); Does not work -- Only with "SW_HIDE" ???
Programming
Software Development
7 Years Ago
by Gustav_1
SetFocus( this->
hWnd
); ShowWindow( this->
hWnd
, SW_HIDE );
Re: Linker errors using HWND
Programming
Software Development
15 Years Ago
by Stepes
… changeCurrSystem(string type); void changeCurrParticle(string type); void Draw(); PSystemManager(
HWND
wind); <----Declare ~PSystemManager(); };[/code] PSystemManager.cpp [code] #…include "./PSystemManager.h" PSystemManager::PSystemManager(
HWND
wind){ <-----Define frames=0; fpsCounter=0; init(wind); …
Re: Linker errors using HWND
Programming
Software Development
15 Years Ago
by Stepes
…(const wxString& title, wxSize size);
HWND
getDrawArea(); wxNotebook *noteb;
HWND
wind; };[/code] ParticleGUI.cpp [icode]
HWND
ParticleGUI::getDrawArea(){ return wind; }[/icode] I… even tried casting the result of getDrawArea() to
HWND
and got the same link error. Ok so I made…
Re: Get Dialog hWnd
Programming
Software Development
14 Years Ago
by William Hemsworth
… get this right, you basically have an array of [B]
hWnd
[/B]'s which all link to the [B]same[/B…
Re: Get Dialog hWnd
Programming
Software Development
14 Years Ago
by William Hemsworth
… how to sepparate the dialogs and get the contact[i].
hWnd
(to hide window) and the contact[i].id to send…
Re: Get Dialog hWnd
Programming
Software Development
14 Years Ago
by Excizted
… get this right, you basically have an array of [B]
hWnd
[/B]'s which all link to the [B]same[/B…
Linker errors using HWND
Programming
Software Development
15 Years Ago
by Stepes
…a class I made and has this constructor [icode]PSystemManager(
HWND
wind);[/icode] which is defined in PSystemManager.cpp file(which….h) They both include <windows.h> for
HWND
. If I call the empty constructor of my class I…no linker error, so it propably has to do with
HWND
. Have I forgotten something in my linker options? Any idea…
"the type or name space name 'HWND' couldnot be found.are you missing a usi
Programming
Software Development
10 Years Ago
by riyamanavalan@g
"the type or name space name '
HWND
' couldnot be found.are you missing a using directive… when i run below code in c#. { LRESULT CALLBACK NewListViewWndProc(
HWND
hwnd
, UINT uiMsg, WPARAM wParam, LPARAM lParam) switch (uiMsg) { …
Re: Linker errors using HWND
Programming
Software Development
15 Years Ago
by jencas
Read the error message more carefully! There is not a problem with
HWND
. It seems you have declared but not defined the ctor with the
HWND
parameter.
Re: Linker errors using HWND
Programming
Software Development
15 Years Ago
by ArkM
Windows API
HWND
type is defined as void*, not [icode]struct HWND__ *[/icode]. Obviously [icode]pgui->getDrawArea()[/icode] returns another type (for example, MFC Cwnd is a simple
HWND
wrapper).
get hwnd from process id
Programming
Software Development
15 Years Ago
by nschessnerd
… sendmessage however i have no idea how to get the
hwnd
because i start the process using system::diagnostics::process [CODE… to send it a message? how do i get the
hwnd
from pid? process->Mainwindowtitle and mainwindowhandle dont return anything…
[Win32] Getting the HWND from a resource ID
Programming
Software Development
13 Years Ago
by Schoorsteen
… seem to find a function where I can get the
HWND
by the resource ID. Just an example: [CODE] CreateWindowEx(NULL…, x, y, width, height, parent, (HMENU)IDC_BUTTON_OK, GetModuleHandle(NULL), NULL);
HWND
btn = getHWNDFromResource((HMENU)IDC_BUTTON_OK); // What function should I use here…
Re: [Win32] Getting the HWND from a resource ID
Programming
Software Development
13 Years Ago
by Schoorsteen
… question is, what is better, to have a lot of
HWND
-variables in my global scope, or just to call GetDlgItem…
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Forums
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC